#include
int main(){
int n,m,sum,a;
int j,k;
int x[50][5];
double y[50];
double z[50];
while(scanf("%d%d",&m,&n)!=EOF){
for(int i=0;i
for(int i= 0;i
for( a=0;a
}y[i]=(double)sum/n*1.0;
}
for(int i=0;i
}z[i]=(double)sum/m*1.0;
}
for(int i=0;i
printf("%.2lf",(double)y[i]);
}else{printf(" %.2lf",(double)y[i]);}
}
printf("n");
for(int i=0;i
printf("%.2lf",(double)z[i]);
}else{printf(" %.2lf",(double)z[i]);}
}
printf("n");
j=0;
for(int i = 0;i
if(k==n){j++;}
}
}
printf("%dnn",j);
}return 0;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)