当前位置:网站首页>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;
}
边栏推荐
- Functional interface
- ftp、sftp文件传输
- Educational codeforces round 22 E. Army Creation
- 与二值化阈值处理相关的OpenCV函数、方法汇总,便于对比和拿来使用
- Cbcgpprogressdlgctrl progress bar used by BCG
- 添加命名空间声明
- Online sql to excel (xls/xlsx) tool
- 牛客小白月赛7 F题
- 矩阵翻转(数组模拟)
- Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?
猜你喜欢
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
Oracle with as ORA-00903: invalid table name 多表报错
C# 使用StopWatch测量程序运行时间
关于判断点是否位于轮廓内的一点思考
Oracle with as ora-00903: invalid table name multi report error
BCG 使用之CBCGPProgressDlg进度条使用
TCP两次挥手,你见过吗?那四次握手呢?
Master the use of auto analyze in data warehouse
Online sql to excel (xls/xlsx) tool
Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
随机推荐
HDU 1372 & POJ 2243 Knight Moves(广度优先搜索)
Have you guys ever used CDC direct Mysql to Clickhouse
FPGA timing constraint sharing 01_ Brief description of the four steps
1009 Product of Polynomials(25 分)(PAT甲级)
如何使用Async-Awati异步任務處理代替BackgroundWorker?
1002. A+b for Polynomials (25) (PAT class a)
Allure of pytest visual test report
黑马程序员-软件测试--08阶段2-linux和数据库-23-30-进程端口相关,修改文件权限,端口号信息的获取,程序和进程相关操作,linux命令案例
Lenovo explains in detail the green smart city digital twin platform for the first time to solve the difficulties of urban dual carbon upgrading
The CDC of sqlserver can read the data for the first time, but it can't read the data after adding, deleting and modifying. What's the reason
An example of multi module collaboration based on NCF
English grammar_ Noun - use
1011 World Cup Betting (20 分)(PAT甲级)
BCG 使用之CBCGPProgressDlgCtrl進度條使用
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
2019年蜀山区第十五届青少年信息学竞赛
Master the use of auto analyze in data warehouse
Add namespace declaration
Introduction to polyfit software
Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks