Run ID:71648

提交时间:2024-04-27 10:54:09

#include<bits/stdc++.h> using namespace std; int main() { int money=100000; int cnt=0; while(money>=5000){ if(money>50000){ money*=0.95; }else{ money-=5000; } cnt++; } cout<<cnt; return 0; }