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;
    }
    
    • 1
      @ 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;
      }
      
      
      • 1
        @ 2024-5-24 11:17:44
        #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;
        }
        
        • -1
          @ 2024-7-5 11:31:51

          #include<bits/stdc++.h> using namespace std; int main() { double x,n; cin>>x>>n; for(int i=1;i<=n;i++) { x+=x*(0.1/100); } cout<<fixed<<setprecision(4)<<x; return 0; }

          • -3
            @ 2024-7-5 11:32:07
            ```
            ``````
            `````````
            ````````````
            ```````````````
            ``````````````````
            `````````````````````
            ````````````````````````
            ```````````````````````````
            ``````````````````````````````
            `````````````````````````````````
            ````````````````````````````````````
            
            • -5
              @ 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;
              }
              
              • 1

              Information

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