当前位置:网站首页>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;
}
边栏推荐
猜你喜欢
随机推荐
Numpy常用操作博客合集
全网最简单解决OneNote中英字体不统一
margin出bug---margin失效
Arduino学习总结 + 实习项目
focusablejs
STM32启动方式及BootLoader
MATLAB代码实现三次样条插值
Input and output of cnn
fidder为什么不会抓包的问题
MATLAB中如何把cftool拟合的函数输出到命令行(解决如何导出拟合后的曲线数据)
性能测试(04)-表达式和业务关联-JDBC关联
百钱买鸡(一)
Product Quantization (PQ)
程序员的专属浪漫——用3D Engine 5分钟实现烟花绽放效果
Use gdb to debug multi-process programs, debug parent and child processes at the same time
七夕?程序员不存在的~
x86异常处理与中断机制(3)中断处理过程
prometheus接入mysqld_exporter
论文分享 | ACL2022 | 基于迁移学习的论元关系提取
去除蜂窝状的噪声(matlab实现)