提交时间:2024-09-24 07:01:57
运行 ID: 51671
#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.01; } cout << fixed << setprecision(4) << sum; return 0; }