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;
}
代码来自 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;
}
相关文章推荐
- PAT 1011. World Cup Betting (20)
- 【PAT Advanced Level】1011. World Cup Betting (20)
- PAT-PAT (Advanced Level) Practise 1011. World Cup Betting (20) (套公式) 【一星级】
- PAT甲题题解-1011. World Cup Betting (20)-误导人的水题。。。
- PAT-1011 World Cup Betting (20)
- PAT甲级 1011.World Cup Betting(20) 题目翻译与答案
- pat 1011. World Cup Betting (20)
- PAT (Advanced Level) Practise 1011 World Cup Betting (20)
- PAT 甲级 1011. World Cup Betting (20)
- 【PAT】1011. World Cup Betting (20)
- [PAT]1011. World Cup Betting (20)
- PAT甲级真题及训练集(7)--1011. World Cup Betting (20)
- PAT-A-1011. World Cup Betting (20)
- PAT 甲级 1011. World Cup Betting (20)
- PAT (Advanced Level) 1011. World Cup Betting (20) 求最大期望值,简单题
- PAT (Advanced Level)1011. World Cup Betting (20)
- PAT 1011. World Cup Betting (20)
- 1011. World Cup Betting (20)-PAT
- 1011. World Cup Betting (20) PAT 甲级
- 浙江大学PAT上机题解析之1011. World Cup Betting (20)