| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71643 | 邓嘉瑶 | 14经过路口 | C++ | Accepted | 1 MS | 264 KB | 234 | 2024-04-27 10:40:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int n=100000,sum=0; while(n>=5000){ if(n>50000){ n=n*0.95; sum++; } if(n<50000){ n=n-5000; sum++; } } cout<<sum; return 0; }