Run ID:139844

提交时间:2025-12-09 19:55:26

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