5 solutions

  • 0
    @ 2024-12-22 15:05:58
    #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
    120
    Accepted
    52
    Uploaded By