做题
#include<stdio.h>
int main()
{
double x,y,z,x1,y1,z1;
int m;
double dian;
double time;
long long L=1;
scanf("%lf%lf%lf%lf%lf%lf%d",&x,&y,&z,&x1,&y1,&z1,&m);
time=x1/x+y1/y+z1/z;
printf("%.*lf",m,time );//
return 0;
}
做题
#include<stdio.h>
int main()
{
double x,y,z,x1,y1,z1;
int m;
double dian;
double time;
long long L=1;
scanf("%lf%lf%lf%lf%lf%lf%d",&x,&y,&z,&x1,&y1,&z1,&m);
time=x1/x+y1/y+z1/z;
printf("%.*lf",m,time );//
return 0;
}