版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/fuckingone/article/details/82633276
没看懂题啊这道TT
注意两个三行 就两个循环。
#include<cstdio>
char s[3]={'W','T','L'};
int main(){
int idx;
double a,ans=1.0;
for(int i=0;i<3;i++){
double temp=0;
for(int j=0;j<3;j++){
scanf("%lf",&a);
if(a>temp){
temp=a;
idx=j;
}
}
ans*=temp;
printf("%c ",s[idx]);
}
printf("%.2lf",(ans*0.65-1)*2);
}