delete pics to save space
This commit is contained in:
15
1.1423.cpp
Normal file
15
1.1423.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<cstdio>
|
||||
int main()
|
||||
{
|
||||
int cnt=0;
|
||||
double step=2.0,in;
|
||||
scanf("%lf",&in);
|
||||
while(in>0)
|
||||
{
|
||||
cnt++;
|
||||
in-=step;
|
||||
step*=0.98;
|
||||
}
|
||||
printf("%d\n",cnt);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user