| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139844 | 杨启宏 | 14经过路口 | C++ | Accepted | 0 MS | 256 KB | 531 | 2025-12-09 19:55:26 |
#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(){ double n=100000; int s=0; while(1){ if(n>50000){ n=n-n*0.05; s++; } if(n<=50000){ n-=5000; s++; } if(n<=5000) break; } cout<<s; return 0; }