提交时间:2024-09-24 07:02:46
运行 ID: 51672
#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; }