| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76462 | 黄睿杰 | 14经过路口 | C++ | Accepted | 0 MS | 260 KB | 261 | 2024-06-02 14:39:13 |
#include<bits/stdc++.h> using namespace std; int main() { int a=100000,s=0; for(int i=1;i>=1;i++) { if(a>50000) { a=a-a*0.05; s++; } if(a<=50000) { a=a-5000; s++; } if(a<5000) break; } cout<<s; return 0; }