5 solutions

  • -4
    @ 2024-5-24 19:10:23
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double x;
        int n;
        cin>>x>>n;
        for(int i=1;i<=n;i++)
        {
            x=x*1.001;
        }
        cout<<fixed<<setprecision(4)<<x;
        return 0;
    }
    

    Information

    ID
    878
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    107
    Accepted
    48
    Uploaded By