当前位置:网站首页>Niuke Xiaobai month race 7 who is the divine Archer
Niuke Xiaobai month race 7 who is the divine Archer
2022-07-04 19:37:00 【Acacia moon tower】
Title Description
one day ,MWH All of a sudden there was interest , Think and CSL Better than anyone else . So they found a bottle , See who hit the bottle first . Given MWH shooting
and CSL shooting
. The two men took turns shooting ,MWH First of all , Ask who has a high probability of winning ?
Input description :
Enter two integers and , Express MWH and CSL shooting ..
Output description :
if MWH The probability of winning is high , The output "MWH". if CSL The probability of winning is high , The output "CSL", Otherwise output "equal".
Input :
100 100
Output :
MWH
Input :
0 100
Output :
CSL
Separate calculation MWH and CSL( Caishengliang ) The winning rate , Compare .
#include <iostream>
using namespace std;
int main() {
int a, b;
double pa, pb;
cin>>a>>b;
pa = 1.0*a/100;
pb = (1.0*(100-a)/100)*(1.0*b/100);
if(pa>pb) {
cout<<"MWH"<<endl;
} else if(pa<pb){
cout<<"CSL"<<endl;
} else {
cout<<"equal"<<endl;
}
return 0;
}
边栏推荐
- Pytorch学习(四)
- 1672. Total assets of the richest customers
- BCG 使用之CBCGPProgressDlg进度条使用
- 1002. A+b for Polynomials (25) (PAT class a)
- 【问题】druid报异常sql injection violation, part alway true condition not allow 解决方案
- 1007 Maximum Subsequence Sum(25 分)(PAT甲级)
- Master the use of auto analyze in data warehouse
- prometheus安装
- 黑马程序员-软件测试--08阶段2-linux和数据库-23-30-进程端口相关,修改文件权限,端口号信息的获取,程序和进程相关操作,linux命令案例
- Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
猜你喜欢

TCP两次挥手,你见过吗?那四次握手呢?

92.(cesium篇)cesium楼栋分层

Mysql database basic operation -ddl | dark horse programmer

C# 使用StopWatch测量程序运行时间

BCG 使用之CBCGPProgressDlg进度条使用

一文掌握数仓中auto analyze的使用

The 300th weekly match of leetcode (20220703)

Several methods of online database migration

Swagger突然发癫

黑马程序员-软件测试--09阶段2-linux和数据库-31-43修改文件权限字母发的说明,-查找链接修改文件,查找文件命令,链接文件,压缩解压方式,vi编辑器基本使用,
随机推荐
HMM隐马尔可夫模型最详细讲解与代码实现
黑马程序员-软件测试--08阶段2-linux和数据库-23-30-进程端口相关,修改文件权限,端口号信息的获取,程序和进程相关操作,linux命令案例
Summary and sorting of 8 pits of redis distributed lock
Shell programming core technology "I"
欧拉函数
西门子HMI下载时提示缺少面板映像解决方案
Double colon function operator and namespace explanation
1006 Sign In and Sign Out(25 分)(PAT甲级)
Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
node_exporter部署
To sort out messy header files, I use include what you use
在线SQL转Excel(xls/xlsx)工具
Allure of pytest visual test report
Pythagorean number law (any three numbers can meet the conditions of Pythagorean theorem)
. Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
牛客小白月赛7 谁是神箭手
ftp、sftp文件传输
用实际例子详细探究OpenCV的轮廓绘制函数drawContours()
Wechat reading notes of "work, consumerism and the new poor"
PointNeXt:通过改进的模型训练和缩放策略审视PointNet++