2 solutions

  • 0
    @ 2024-4-14 19:05:13

    #include #include #include using namespace std; int main() { double s,s1,x,n,x1; scanf("%lf %lf",&x,&n); s=pow(1.001,n); s1=x*s; printf("%.4lf",s1); return 0; }

    • 0
      @ 2024-3-19 22:50:40

      #include #include #include using namespace std;

      int main() { double x, n; cin >> x >> n; double result = x * pow(1.001, n); cout << fixed << setprecision(4) << result << endl; return 0; }

      • 1

      Information

      ID
      6878
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      8
      Accepted
      7
      Uploaded By