Run ID:98856
提交时间:2024-11-23 16:33:16
#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 a,x=100000; for(a=1;;a++){ if(x>50000){ x=x-(x*0.05); }else{ x=x-5000; }if(x<5000);{ cout<<a; break; } } return 0; }