HDU 5347 MZL's chemistry (2015 Multi-University Training Contest 5 2015多校联合)
来源:互联网 发布:苹果系统基于linux 编辑:程序博客网 时间:2024/05/16 12:32
题目传送门:HDU 5347 MZL's chemistry
MZL's chemistry
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 32 Accepted Submission(s): 29
Problem Description
MZL define F(X) as the first ionization energy of the chemical element X
Now he get two chemical elementsU,V ,given as their atomic number,he wants to compare F(U) and F(V)
It is guaranteed that atomic numbers belongs to the given set:{1,2,3,4,..18,35,36,53,54,85,86}
It is guaranteed the two atomic numbers is either in the same period or in the same group
It is guaranteed thatx≠y
Now he get two chemical elements
It is guaranteed that atomic numbers belongs to the given set:
It is guaranteed the two atomic numbers is either in the same period or in the same group
It is guaranteed that
Input
There are several test cases
For each test case,there are two numbersu,v ,means the atomic numbers of the two element
For each test case,there are two numbers
Output
For each test case,if F(u)>F(v) ,print "FIRST BIGGER",else print"SECOND BIGGER"
Sample Input
1 25 3
Sample Output
SECOND BIGGERFIRST BIGGER
Source
2015 Multi-University Training Contest 5
代码:
#include"iostream"#include"cstdio"using namespace std;int main(){ int u,v; int a[104]={1312.0,2372.3,520.2,899.5,800.6,1086.5,1402.3,1313.9,1681.0,2080.7, 695.8,737.7,577.5,786.5,1011.8,999.6,1251.2,1520.6,418.8,589.8, 633.1,658.8,650.9,652.9,717.3,762.5,760.4,737.1,745.5,906.4, 57.8,762.0,794.0,941.0,1139.9,1350.8,403.0,549.5,900.0,640.1, 652.1,684.3,702.0,710.2,719.7,804.4,781.0,867.8,558.3,708.6, 834.0,869.3,1008.4,1170.4,375.7,502.9,538.1,534.4,527.0,533.1, 540.0,544.5,547.1,593.4,565.8,573.0,581.0,589.3,596.7,603.4, 523.5,658.5,761.0,770.0,760.0,840.0,880.0,870.0,890.1,1007.1, 589.4,715.6,703.0,812.1,890.0,1037.0}; while(scanf("%d%d",&u,&v)!=EOF) { if(a[u-1]>a[v-1]) { printf("FIRST BIGGER\n"); } else { printf("SECOND BIGGER\n"); } } return 0;}
0 0
- HDU 5347 MZL's chemistry (2015 Multi-University Training Contest 5 2015多校联合)
- hdu--5347--2015 Multi-University Training Contest 5--MZL's chemistry
- 2015 Multi-University Training Contest-5 MZL's chemistry
- HDU 5349 MZL's simple problem (2015 Multi-University Training Contest 5 2015多校联合)
- 2015 Multi-University Training Contest 5 - 1002 MZL's xor
- 2015 Multi-University Training Contest 5 - MZL's simple problem
- 2015 Multi-University Training Contest-5 MZL's xor
- HDU--5344--2015 Multi-University Training Contest 5--MZL's xor
- HDU--5349--2015 Multi-University Training Contest 5--MZL's simple problem
- HDU 5352 MZL's City(最小费用最大流)经典 2015 Multi-University Training Contest 5
- hdu 5348 MZL's endless loop 2015 Multi-University Training Contest 5
- hdu 5349 MZL's simple problem 2015 Multi-University Training Contest 5
- hdu 5347 MZL's chemistry 2015多校联合训练赛#5 打表
- HDU 5351 MZL's Border(大数 + 找规律)——2015 Multi-University Training Contest 5
- 2015 Multi-University Training Contest 5 1009 MZL's Border
- HDU 5319 Painter (2015 Multi-University Training Contest 3 2015多校联合)
- HDU 5326 Work 并查集 (2015 Multi-University Training Contest 3 2015多校联合)
- HDU 5327 Olympiad (2015 Multi-University Training Contest 4 2015多校联合)
- IIS7.5上的REST服务的Put,Delete操作发生HTTP Error 405.0 - Method Not Allowed 解决方法
- Android进程的内存管理分析
- eclipse一些设置的问题
- hdoj 1181 变形课
- springmvc运行机制
- HDU 5347 MZL's chemistry (2015 Multi-University Training Contest 5 2015多校联合)
- 第一篇博客纪念
- mysql my.conf utf8 编码设置
- 没有指定属性的某个标签
- HDU 2099 整除的尾数
- 【Java并发编程实战】—–synchronized
- OC学习:OC内存中的内存的难点
- 工作站计算机
- 为php添加拓展模块