| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73005 | Kevin | 14经过路口 | C++ | Accepted | 0 MS | 264 KB | 307 | 2024-05-15 16:02:40 |
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ int cishu=0,cash=100000; while(1){ if(cash>50000){ cash=cash*0.95; cishu++; } else { cash-=5000; cishu++; } if(cash<5000) { cout<<cishu; break; } } return 0; }