mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
363 B
C++
18 lines
363 B
C++
|
#include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int T,q;
|
||
|
double y,e,f,g;
|
||
|
scanf("%d",&T);
|
||
|
while(T--)
|
||
|
{
|
||
|
scanf("%lf%d%lf%lf%lf",&y,&q,&e,&f,&g);
|
||
|
double sum1=y*(1+(f*(q+365))/36500);
|
||
|
double sum2;
|
||
|
sum2=y*(1+(e*q)/36500);
|
||
|
sum2=sum2*(1+g/100);
|
||
|
printf("%.1lf\n%.1lf\n",sum2,sum1);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|