这题直接写好嘛
#include <cstring>
#include <iostream>
#include <cmath>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iomanip>
using namespace std;
int main() {
double total = 0;
double goal;
cin >> goal;
double step = 2;
int cnt = 0;
while(total < goal) {
total += step;
step *= 0.98;
cnt++;
}
cout << cnt << endl;
}