- 龙凤苑中学A班5.29
yefgheuwfekrjfhuedhfueif
- @ 2024-5-29 17:43:14
#include using namespace std; int main(){ double a,b=2,c; cin>>a; for(c=1;c>=0;c++){ a-=b; b*=0.98; if(a<=0) break; } cout<<c; return 0; }
0 comments
No comments so far...
#include using namespace std; int main(){ double a,b=2,c; cin>>a; for(c=1;c>=0;c++){ a-=b; b*=0.98; if(a<=0) break; } cout<<c; return 0; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.