Run ID:71647

提交时间:2024-04-27 10:53:58

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