只有第一个对了...
#include<bits/stdc++.h> using namespace std; int main() { double s = getchar(); int q = 0; while (s > 0) { e *= 0.98; s -= e; q++; } cout << q << endl; return 0; }