1011 World Cup Betting (20 分)【难度: 简单 / 知识点: 模拟】
2023-09-11 14:15:52 时间
https://pintia.cn/problem-sets/994805342720868352/problems/994805504927186944
#include<bits/stdc++.h>
using namespace std;
string s[5]={"W","T","L"};
double a[5];
string ans;
double sum=1;
int main(void)
{
for(int i=0;i<3;i++)
{
int index=0;
for(int j=0;j<3;j++)
{
cin>>a[j];
if(j&&a[j]>a[index]) index=j;
}
ans=ans+s[index]+" ",sum*=a[index];
}
cout<<ans;
printf("%.2lf",2*(sum*0.65-1));
return 0;
}
相关文章
- 【c++STL——第一讲】vector系列 (常用知识点总结)
- 备战CKA每日一题——第1天 | CKA简介、考纲、Daemonset知识知识点初探
- 1112 Stucked Keyboard (20 分)【难度: 一般 / 知识点: 模拟】
- 1100 Mars Numbers (20 分)【难度: 一般 / 知识点: 模拟】
- 1153 Decode Registration Card of PAT (25 分)【难度: 一般 / 知识点: 排序 模拟】
- 1152 Google Recruitment (20 分)【难度: 简单 / 知识点: 模拟】
- 1147 Heaps (30 分)【难度: 一般 / 知识点: 堆 模拟 】
- 1140 Look-and-say Sequence (20 分)【难度: 一般 / 知识点: 模拟】
- 1136 A Delayed Palindrome (20 分)【难度: 简单 / 知识点: 模拟】
- 1134 Vertex Cover (25 分)【难度: 一般 / 知识点: 模拟】
- 1067 Sort with Swap(0, i) (25 分)【难度: 中 / 知识点: 置换群】
- 1061 Dating (20 分)【难度: 一般 / 知识点: 模拟】
- 1056 Mice and Rice (25 分)【难度: 一般 / 知识点: 模拟】
- 1039 Course List for Student (25 分)【难度: 一般 / 知识点: 模拟 哈希表】
- 1035 Password (20 分)【难度: 一般 / 知识点: 字符串 模拟】
- 1032 Sharing (25 分) 【难度: 一般 / 知识点: 链表】
- 1008 Elevator (20 分)【难度: 简单 / 知识点: 模拟】
- 1005 Spell It Right (20 分)【难度: 简单 / 知识点: 模拟】
- Java 面试越来越难,哪些知识点才是DA CAHANG喜欢问的?
- 【C/C++知识点汇总】
- Java必备基础十五——异常处理基本知识点
- Vue知识点总结(5)——v-model(超级详细)
- Vue知识点总结(1)——v-text、v-html(超级详细)
- 关于 Android 渲染你应该了解的知识点
- HTML5易漏知识点锦集
- 408 | 大纲知识点考点冲刺 复习整理 ——【计组】第一二三章
- 【知识点总结】-《C陷阱与缺陷》
- 【C语言】C语言的灵魂——指针及相关知识点