Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139846 万嘉宇 14经过路口 C++ Accepted 0 MS 264 KB 464 2025-12-09 20:00:37

Tests(1/1):


Code:

#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 s=100000,n=0; while(s>5000){ if(s>50000){ s-=s*0.05; n++; } if(s<50000){ s-=5000; n++; break; }} cout<<n+8; return 0; }