提交时间:2024-09-24 07:03:10
运行 ID: 51673
#include<bits/stdc++.h> using namespace std; int main() { double people, n, sum; cin >> people >> n; sum = people; for (int i = 1; i <= n; i++) { sum *= 1.001; } cout << fixed << setprecision(4) << sum; return 0; }