Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115499 | 胡海峰老师 | 14经过路口 | C++ | Accepted | 0 MS | 268 KB | 234 | 2025-03-30 19:37:53 |
#include <iostream> using namespace std; int main() { int m,cnt=0; m = 100000; while (1) { if (m>50000) m -= m*.05; else m -= 5000; if(m<0) break; cnt++; } cout<<cnt; return 0; }