提交时间:2019-10-06 21:03:17
运行 ID: 1329
#include<iostream> int main(){ float b; int a; scanf("%d,%f",&a,&b); switch(a){ case 1:b=b*(1+0.0225);break; case 2:b=b*(1+0.0243)*(1+0.0243);break; case 3:b=b*(1+0.0270)*(1+0.0270)*(1+0.0270);break; case 4:b=b*(1+0.0288)*(1+0.0288)*(1+0.0288)*(1+0.0288);break; case 5:b=b*(1+0.0300)*(1+0.0300)*(1+0.0300)*(1+0.0300)*(1+0.0300);break; } printf("%f",b); return 0; }