17 lines
276 B
C++
17 lines
276 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
double k;
|
|
double x;
|
|
|
|
int main() {
|
|
cin >> k;
|
|
for (int cnt = 1;; cnt++) {
|
|
x += 2.0 * pow(0.98, cnt - 1);
|
|
if (x >= k) {
|
|
cout << cnt << endl;
|
|
exit(0);
|
|
}
|
|
}
|
|
}
|