#include<iostream>
#include<iomanip>
using namespace std;
char S[3]={'W','T','L'};
int main(){
double num,temp;
int max_index;
double ans=1;
for(int i=0;i<3;i++){
temp=0;
for(int j=0;j<3;j++){
cin>>num;
if(num>temp){
temp=num;
max_index=j;
}
}
cout<<S[max_index]<<" ";
ans*=temp;
}
cout<<fixed<<setprecision(2)<<(ans*0.65-1)*2<<endl;
}
1011. World Cup Betting (20) PAT 甲级
最新推荐文章于 2025-03-13 10:19:16 发布
本文展示了一个使用C++编写的简单程序示例,该程序读取三轮比赛中的最高分数,并计算最终得分。程序使用了标准输入输出,并展示了如何在C++中使用循环和条件判断来找出最大值。
1019

被折叠的 条评论
为什么被折叠?



