Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117877 | 顾文博 | 14经过路口 | C++ | Accepted | 0 MS | 260 KB | 520 | 2025-04-20 15:40:29 |
#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 a,s=100000; for(int i=1;;i++){ if(s>50000){ s=s-s*0.05; } else{ s-=5000; } if(s<5000){ cout<<i; break; } } return 0; }