求助,20分
查看原帖
求助,20分
997339
liu12073_楼主2023/8/9 21:35

只有第一个对了...

#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;
}
2023/8/9 21:35
加载中...