mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-11 00:30:27 +08:00
19 lines
278 B
C++
19 lines
278 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
#include <ctime>
|
|
#include <cmath>
|
|
using namespace std;
|
|
int main(){
|
|
double a,sum=0;
|
|
int b=0;
|
|
scanf("%lf",&a);
|
|
while(sum<=a){
|
|
b++;
|
|
sum+=1*1.0/b;
|
|
}
|
|
printf("%d",b);
|
|
return 0;
|
|
}
|