Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
47220 | 杨中琦 | 利率计算 | C++ | Accepted | 100 | 0 MS | 248 KB | 270 | 2022-07-14 11:57:35 |
#include<iostream> int main(){ int a,b; float c; scanf("%d,%d",&a,&b); if(a==1){ c=b+b*0.0225; } if(a==2){ c=b+b*0.0243; } if(a==3){ c=b+b*0.0270; } if(a==4){ c=b+b*0.0288; } if(a==5){ c=b+b*0.03; } printf("合计为%f",c); }