解题报告:算利息的,不过一开始格式控制符里面少写了一个%lf,一直没看到,愣是没找到错误,唉!
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 #include<cstdio> 2 3 int main() { 4 int T; 5 scanf("%d",&T); 6 while(T--) { 7 double Y,Q,e,f,g,ans1,ans2; 8 scanf("%lf%lf%lf%lf%lf",&Y,&Q,&e,&f,&g); 9 e/=100.0,f/=100.0,g/=100.0; 10 double x1 = Y*(1.0 + e*(Q/365.0)); 11 ans1 = x1*(1.0 + g); 12 ans2 = Y*(1.0 + f*(Q + 365.0)/365.0); 13 printf("%.1lf %.1lf ",ans1,ans2); 14 } 15 return 0; 16 }