当前位置:网站首页>PAT1011
PAT1011
2022-08-09 11:09:00 【AlanLiu6】
https://pintia.cn/problem-sets/994805342720868352/problems/994805504927186944
#include<cstdio>
int main()
{
//double num[3];
// int num[3];
double sum = 1;
for(int i = 0;i < 3;i++)
{
double maxn = 0;
int choose = -1;
for(int j = 0;j < 3;j++)
{
double t;
scanf("%lf",&t);
if(t > maxn)
{
choose = j;
maxn = t;
}
}
sum *= maxn;
if(choose == 0) printf("W ");
else if(choose == 1) printf("T ");
else printf("L ");
}
sum = sum*0.65 -1 ;
// sum = 1;
sum *= 2;
printf("%.2lf\n",sum);
return 0;
}
边栏推荐
猜你喜欢
随机推荐
API接口是什么?API接口常见的安全问题与安全措施有哪些?
GOPROXY 中国代理
全网最简单解决OneNote中英字体不统一
激光条纹中心提取——灰度重心法
Jmeter BeanShell post processor
mysql参数配置学习----临时表内存表的设置
fidder为什么不会抓包的问题
PTA 求一批整数中出现最多的个位数字
Missing URI template variable ‘employeeNumber‘ for method parameter of type String
七夕?程序员不存在的~
美的数字化平台 iBUILDING 背后的技术选型
STM32使用静态队列保存数据
彻底理解工厂模式
golang 标准库json Marshal、Unmarshal坑
The use of signal function (signal) in C language
UNIX Philosophy
性能测试(06)-逻辑控制器
激光条纹中心提取——Steger
从位图到布隆过滤器
程序员的专属浪漫——用3D Engine 5分钟实现烟花绽放效果