0分求助(超时)
查看原帖
0分求助(超时)
506225
_Ventus_楼主2021/5/26 19:49
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a=0;
    long double b,v=2,c=0;
    cin>>b;
    while(c<b)
    {
        c=v;
        v=v/100*98;
        a++;
    }
    cout<<a;
    return 0;
}
2021/5/26 19:49
加载中...