#include<iostream>
#include<cstdio>
using namespace std;
double sum=1.0;
string select(double a[])
{
if(a[0]>a[1] && a[0]>a[2])
{
sum=sum*a[0];
return "W";
}
else if(a[1]>a[2] && a[1]>a[3])
{
sum=sum*a[1];
return "T";
}
else
{
sum=sum*a[2];
return "L";
}
}
int main()
{
double a[3],b[3],c[3];
while(scanf("%lf%lf%lf",&a[0],&a[1],&a[2])!=EOF)
{
scanf("%lf%lf%lf",&b[0],&b[1],&b[2]);
scanf("%lf%lf%lf",&c[0],&c[1],&c[2]);
printf("%s %s %s",select(a).c_str(),select(b).c_str(),select(c).c_str());
sum=(sum*0.65-1)*2.0;
printf(" %.2lf\n",sum);
}
return 0;
}相关推荐
MacOS蓝牙连接疑难杂症:从基础排查到高级修复全攻略
本文提供了一份全面的MacOS蓝牙故障排查与修复指南。从基础的菜单栏检查、终端命令诊断,到软/硬重启蓝牙服务、删除配置文件,再到使用blueutil工具、重置NVRAM等高级方法,系统性地解决了蓝牙无法连接、连接不稳定等常见问题。最后还分享了环境干扰排查、预防措施及硬件故障自检方法,帮助用户彻底解决Mac蓝牙连接难题。
ZJU PAT 1011 World Cup Betting
不值一讲的水题 1 dict = {0:'W', 1:'T', 2:'L'} 2 def MaxList(list): 3 d = 0.0 4 max = 0 5 for i in range(len(list)): 6 if float(list[i]) > d: 7 max = i 8 ...
Docker 安装 CentOS7
本文主要介绍了docker 下安装centos7。访问 CentOS 镜像库地址:https://hub.docker.com/_/centos?tab=tags&page=1。可以通过 Sort by 查看其他版本的 CentOS 。默认是最新版本 centos:latest 。 使用以下命令来查看是否已安装了 centos7: 启动centos容器,并把docker上centos的22端口映射到本机60001端口(端口号可以自己指定) 3、进入到Centos容器 4.安装ssh服务和网络必须软件
pat 1011. World Cup Betting
题目地址: http://pat.zju.edu.cn/contests/pat-a-practise/1011
Catia二次开发QueryInterface的操蛋问题
探索了很久,尝试录制宏,打开部件属性窗口,然后随意设置一些属性(必须改变一些东西才能录制成功,否则不会录制到任何东西),再看录制的结果,发现原来CATIAAnalyze是从Product那里来的。例如获得一个部件的体积,找到相关接口CATIAAnalyze,但是这个部件的CATIAAnalyze的对象不知道如何获取。总结一下,写Catia二开代码,就像漂亮国那款《莫里秀》 又名《爸爸死哪了》的综艺节目,大部分时间都是在找爸爸!Catia二开很痛苦,明明已经找到接口类,但是却不知道怎么获得这个接口类的对象。
物流系统集成实战:从零开始用Java对接国际快递(DHL/FedEx/UPS)
本文详细介绍了如何使用Java技术栈对接DHL、FedEx和UPS三大国际快递巨头的API,构建高效、稳定的物流集成解决方案。内容涵盖认证机制、报文标准、多语言支持等关键点,并提供实战代码示例和最佳实践,帮助开发者快速实现国际快递系统集成。
【PAT】1011. World Cup Betting (20)
题目:http://pat.zju.edu.cn/contests/pat-a-practise/1011 简单题。照着题目给出的公式计算就可以。 With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best play
一定能解决ROS系统 rosdep update超时问题de简单方法
rosdep update命令使用 1.首先将下面仓库的内容clone到本地 git clone https://github.com/ros/rosdistro.git 记录rosdistro存放地址,例如/home/gec/rosdistro 如果是自己的改成/home/user/rosdistro,其中user表示用户名 2.修改/usr/lib/python2/dist-packages/rosdep2/rep3.py文件 cd /usr/lib/python2/dist-packages/ros
pat 1011. World Cup Betting (20)
链接:http://pat.zju.edu.cn/contests/pat-a-practise/1011 题意:给定数据,找到每行的最大值根据公式计算结果。 分析:简单模拟题目。 #include<stdio.h> double bigger(double a, double b) { if (a > b) return a; e...
LTO编译器优化介绍以及开启方法
LTO优化的详细介绍
用户画像标签维度_搭建电商平台用户画像标签体系
01 整体思路电商平台连接了卖家和买家两端,最终目的都是促进交易,从而追求更高的销售额。提高人货匹配度是促进交易的关键,而提高人货匹配度的关键就是“让买家找到想要的货物”。本文结合“人、货、场”理论模型,尝试建立电商平台的用户画像标签体系。02 三类标签用户在平台购物的整体流程可以概括为:进入平台、选择商品、下单付款。可以将该过程抽象为“人、货、场”。即用户通过什么途径进入什么商品的页面...
ZJU-PAT 1010. Radix (25)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is a binary number. Now for any pair of positive
[网络安全提高篇] 一二〇.恶意软件动态分析经典沙箱Cape批量提取动态API特征
这是作者网络安全自学教程系列,主要是关于安全工具和实践操作的在线笔记,特分享出来与博友们学习,希望您喜欢,一起进步。前文详细介绍动态分析沙箱Cape的安装过程,其是一个开源的自动恶意软件分析系统,通过自动运行和分析恶意软件,全面分析和提取恶意软件的关键特征。然而,当样本数量增加时,单个样本分析会降低效率。这篇文章将讲解如何实现Cape沙箱的批量分析,通过调用Python脚本文件来实施批量处理,并将分析结果存储在指定位置,最后补充submit.py的参数及Python调用方式。基础性文章,希望对您有帮助!
ZJU-PAT 1065. A+B and C (64bit) (20)
Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C. Input Specification: The first line of the input gives the positive number of test cases, T ( Output
SAP B1中文培訓教材_SDK
公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说
复分析 阿尔福斯(Ahlfors) 第三版答案 英文
答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案
ZJU-PAT 1080. Graduate Admission (30) 浙大2014年上机复试第四题
#include #include #include #include using namespace std; const int maxn=40005; const int maxm=101; int n,m,k; int num[maxm]; int lastRank[maxm]; vector mm[maxm]; struct stu { int id; int G
OV9734 DATASHEET,完整规格书
OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等
ZJU-PAT 1079. Total Sales of Supply Chain (25) 浙大2014年上机复试第三题
#include #include using namespace std; struct Node { int parent; //父节点 bool flag; //是否是retailers int level; //第几层 int num; //销售多少个 }; Node tt[100005]; int n; double p,r,sum;
IMSL CNL 7.0.0 (x86-64)Crack
IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件
ZJU-PAT 1057. Stack (30) 浙大2013年上机复试第三题
#pragma warning (disable:4786) #include #include #include #include #include using namespace std; int n,d;; int A[10005],B[10005]; int select(int num) { for(int i=1;i<=d;i++) B[i]=A[i];
ZJU-PAT 1070. Mooncake (25)
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now
ZJU-PAT 1081. Rational Sum (20)
模拟题 #pragma warning (disable:4786) #include #include #include #include #include #include #include using namespace std; long long int sum,ans,sum1; int n; struct Node { long long int numerato
ZJU-PAT 1054. The Dominant Color (20) 浙大2013年上机复试第一题
#pragma warning (disable:4786) #include #include #include #include using namespace std; int main() { int m,n; while(scanf("%d%d",&m,&n)!=EOF) { int i,j; string s; map ans;
ZJU-PAT 1077. Kuchiguse (20) 浙大2014年上机复试第一题
#include #include #include #include using namespace std; string longest_common_suffix(string a,string b) { string tmp=""; int len1=a.size()-1; int len2=b.size()-1; while(len1>=0 && len2>=0) {
ZJU-PAT 1055. The World's Richest (25) 浙大2013年上机复试第二题
#pragma warning (disable:4786) #include #include #include #include #include using namespace std; int m,n; int num,Min,Max; struct people { string name; int age,money; }; people TT[
ZJU-PAT 1056. Mice and Rice (25) 浙大2013年上机复试第四题
#pragma warning (disable:4786) #include #include #include #include #include #include using namespace std; int n,m; int B[100005]; int flag; int cnt;//第几轮次被淘汰 int group[1005],num_i
ZJU PAT 1012 The Best Rank
#include #include #include #include using namespace std; #define Min(a,b)(a<b?a:b) int n,m; struct student { int id,ctest,math,english; double avg; int crank,mrank,erank,arank; int bestrank; st
ZJU-PAT 1050
#include #include using namespace std; /* Sample Input: They are students. aeiou Sample Output: Thy r stdnts. */ bool myhash[150]; string s1,s2; void run() { getline(cin,s2); int i; string
ZJU-PAT 1051 Pop Sequence
#include #include #include using namespace std; int m,n,cases; stack f; int a[1005]; bool Judge() { while(f.empty()==false) f.pop(); int i,j; for(i=0;i<n;i++) scanf("%d",&a[i]); if(a[0]>m) re
450



被折叠的 条评论
为什么被折叠?



