hhly520
幼苗
共回答了23个问题采纳率:91.3% 举报
#include
void main()
{
double c[10][10]={ {02.31,03.47,04.62,05.77,06.91,08.05,09.19,10.32,11.44,12.57},
{13.69,14.80,15.91,17.02,18.12,19.22,20.31,21.40,22.49,23.57},
{24.65,25.73,26.80,27.87,28.93,29.99,31.05,32.10,33.15,34.19},
{35.23,36.27,37.30,38.33,39.36,40.38,41.40,42.42,43.43,44.44},
{45.45,46.45,47.45,48.44,49.43,50.42,51.41,52.39,53.37,54.34},
{55.31,56.28,57.25,58.21,59.17,60.12,61.07,62.02,62.97,63.91},
{64.85,65.78,66.72,67.65,68.57,69.50,70.42,71.34,72.25,73.16},
{74.07,74.98,75.88,76.78,77.67,78.57,79.46,80.35,81.23,82.11},
{82.99,83.87,84.74,85.61,86.48,87.35,88.21,89.07,89.93,90.78},
{91.63,92.48,93.33,94.17,95.01,95.85,96.68,97.52,98.35,99.18}};
int a,S1,S2,S3,Y1,Y2,Y3,x,y;
double b,S,Y,Z;
while(scanf("%d %dn%d %dn%d %d",&S1,&Y1,&S2,&Y2,&S3,&Y3)&&(S1 {
S=S1+S2+S3;
Y=Y1+Y2+Y3;
Z=(float)(S/Y)*95+5;
a=(int)Z;
b=Z-a;
x=a/10;
y=a%10;
Z=c[x][y]+b;
printf("%lf %lf %lf %lfn",S,Y,S/Y,Z);
}
}//望采纳
1年前
6