#include<cstdio> #include<algorithm> using namespace std; char s[3]={'W','T','L'}; int main(){ double arr[3][3]={0},sum,fin[3],MAX=0.0; for(int i=0;i<3;i++) scanf("%lf %lf %lf",&arr[i][0],&arr[i][1],&arr[i][2]); for(int i=0;i<3;i++){ MAX=0.0; int temp; for(int j=0;j<3;j++){ if(arr[i][j]>MAX){ MAX=arr[i][j]; temp=j; } } printf("%c ",s[temp]); fin[i]=MAX; } printf("%.2f",(fin[0]*fin[1]*fin[2]*0.65-1)*2); return 0; } /*1.1 2.5 1.7 1.2 3.0 1.6 4.1 1.2 1.1 T T W 37.98*/
甲级pat-1011
猜你喜欢
转载自blog.csdn.net/qq_36926514/article/details/80371559
今日推荐
周排行