| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159218 | 杨正蠔 | 14经过路口 | C++ | Accepted | 1 MS | 260 KB | 515 | 2026-08-27 09:24:31 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int money=100000,n=0; while(money>5000){ if(money>50000){ money-=money*0.05; n+=1; } else{ money-=5000; n+=1; } } cout<<n<<endl; return 0; }