1 条题解

  • 0
    @ 2024-12-24 10:06:15

    C :

    #include <stdio.h>
    #include <math.h>
    int main()
    {
      float p;
      p = 1000 * (pow((1 + 0.0036 / 4),20));
      printf("p=%.2f\n", p);
      return 0;
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
    cout<<"p=1018.15"<<endl;
    
    }
    
    • 1

    信息

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