#include<iostream> int main(){ int a; double c,d,b; scanf("%d,%lf",&a,&b); switch(a){ case 1:c=1+0.0225;d=c*b;printf("合计为%f",d);break; case 2:c=1+0.0270;d=c*c*b;printf("合计为%f",d);break; case 3:c=1+0.0270;d=c*c*c*b;printf("合计为%f",d);break; case 4:c=1+0.0288;d=c*c*c*c*b;printf("合计为%f",d);break; case 5:c=1+0.0300;d=c*c*c*c*c*b;printf("合计为%f",d);break; default:break; } return 0; }