题目:http://acm.hdu.edu.cn/showproblem.php?pid=1994
题目给的不是太明白,但写出来改改就好,,,
#include <stdio.h>
int main()
{
int t;
scanf("%d",&t);
double y,q,e,f,g,sum1,sum2;
while(t--)
{
sum1=sum2=0.0;
scanf("%lf%lf%lf%lf%lf",&y,&q,&e,&f,&g);
sum1+=y*(1+e/100*q/365);
sum1=sum1*(1+g/100);
printf("%.1lf\n",sum1);
sum2+=y*(1+f/100*(q+365)/365);
printf("%.1lf\n",sum2);
}
return 0;
}