delete pics to save space
This commit is contained in:
16
1.1035.cpp
Normal file
16
1.1035.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include<cstdio>
|
||||
int main()
|
||||
{
|
||||
int n,k;
|
||||
scanf("%d",&k);
|
||||
double cnt=0;
|
||||
n=1;
|
||||
while(1)
|
||||
{
|
||||
cnt+=1.0/n;
|
||||
if(cnt>k) break;
|
||||
n++;
|
||||
}
|
||||
printf("%d\n",n);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user