delete pics to save space
This commit is contained in:
12
history_source/信息学奥赛一本通/1.4.3.3.cpp
Normal file
12
history_source/信息学奥赛一本通/1.4.3.3.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double add=0;
|
||||
int ans=1,n;
|
||||
scanf("%d",&n);
|
||||
while(add<=n) add+=1.0/ans,ans++;
|
||||
printf("%d\n",ans-1);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user