Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
129533 | 黄俊然 | 14经过路口 | C++ | Accepted | 1 MS | 264 KB | 451 | 2025-08-27 20:31:18 |
#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(){ int h=100000,s=0; while(h>5000){ if(h>50000){ h-=h*0.05; } else{ h-=5000; } s++; } cout<<s; return 0; }