提交时间:2021-05-22 15:12:09
运行 ID: 106
#include<iostream> #include<cstdio> using namespace std; int main() { int r,m,y; cin>>r>>m>>y; int a1,a2,a3,a4; for(int i=0;i<y;i++){ a1=(1.05)*m; a2=(1.05)*a1; a3=(1.05)*a2; a4=(1.05)*a3; } cout<<a4+1; }