竞赛
考级
#include <bits/stdc++.h> using namespace std; int main() { int r,m,y=0; cin>>r>>m>>y; float s=m; for(int i=1;i<=y;i++){ s*=(1+r*0.01); } m=s; cout<<m; return 0; }
曹汇煦
黑客_天之神_ZDZL_zsy
#include<bits/stdc++.h> using namespace std; int main() { double r,m,y,s=0; cin>>r>>m>>y; for(int i=1;i<=y;i++){ m=m*(1+r*0.01); } cout<<(int)m; return 0; }
爱学C++的MC爱玩MC的c++