6 solutions

  • 1
    @ 2025-7-21 11:56:29
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	double x;
    	cin>>x>>n;
    	for (int i=1;i<=n;i++)
    	{
    		x=x*1.001;
    	}
    	cout<<fixed<<setpreision(4)<<x;
        return 0;
    }
    

    Information

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