1 solutions

  • 1
    @ 2024-7-20 18:58:58

    #include<bits/stdc++.h>

    using namespace std;

    int main(){ double x; cin>>x; int i=1; double w=2,v=2; while(w<=x){ i++; v=v*0.98; w+=v; } cout<<i; return 0; } ,,,

    • 1

    Information

    ID
    416
    Time
    1000ms
    Memory
    125MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    2
    Accepted
    2
    Uploaded By