您的位置:首页 > 其它

pat 1011 1011. World Cup Betting (20)

2017-02-27 08:34 411 查看
https://www.patest.cn/contests/pat-a-practise/1011

代码来自 http://blog.csdn.net/jtjy568805874/article/details/50782588

#include <cstdio>
#include <algorithm>
using namespace std;

double x, y, z, ans = 1;
int main()
{
for (int i = 0; i < 3; i++)
{
scanf("%lf%lf%lf", &x, &y, &z);
ans *= max(x, max(y, z));
if (x == max(x, max(y, z))) printf("W ");
else printf("%c ", y > z ? 'T':'L');
}
printf("%.2lf\n", ans*1.3 - 2);
return 0;
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: