3 条题解

  • 1
    @ 2023-11-5 11:06:11
    #include<iostream>
    using namespace std;
    int main(){
        double x;
        int n;
        cin >> x >> n;
        for(int i=1;i<=n;i++){
            x*=1.001;
        }
        printf("%.4lf",x);
        return 0;
    }
    
    • 0
      @ 2023-10-20 20:04:06
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double x,n;
      	cin>>x>>n;
      	cout<<fixed<<setprecision(4)<<x*pow(1+0.001,n);
      	return 0;
      }
      
      • -1
        @ 2023-10-14 13:31:58

        #include<iostream> #include<cstdio> using namespace std; int main(){ int n; float x; cin>>x>>n; for(int i=1;i<=n;i++){ x=x+x*0.001; } printf("%.4lf",x); return 0; }

        • 1

        信息

        ID
        6875
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        26
        已通过
        18
        上传者