1010的题解是什么,发出来

1 条评论

  • @ 2024-7-11 15:15:43

    #include <iostream> #include <iomanip> using namespace std;

    int main() { int x, n; cin >> x >> n; double growthRate = 0.001; double population = x; for (int i = 0; i < n; i++) { population *= (1 + growthRate); } cout << fixed << setprecision(4) << population << endl; return 0; }

    • 1

    信息

    ID
    1010
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    26
    已通过
    8
    上传者