提交时间:2023-02-01 22:13:28
运行 ID: 8696
#include<iostream> #include<cmath> using namespace std; int main() { float M,Y,sum=0; float R; cin>>R>>M>>Y; for(int i=1;i<=Y;i++) { sum=M*(R/100)+M; M=sum; } cout<<(int)M; return 0; }