提交时间:2021-05-22 15:05:34
运行 ID: 102
#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=(r*0.01)*m+m; a2=(r*0.01)*a1+m; a3=(r*0.01)*a2+m; a4=(r*0.01)*a3+m; } cout<<a4; }