Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2383 | 杨洋杰 | 14经过路口 | C++ | Accepted | 0 MS | 264 KB | 250 | 2023-12-30 11:01:32 |
#include<iostream> using namespace std; int main(){ double m=100000,s=0; while(m>=50000){ m=m-m*0.05; s++; } while(m>=0&&m<50000){ m=m-5000; s++; } cout<<s-1<<endl; return 0; }