2015 Multi-University Training Contest-5 MZL's chemistry

来源:互联网 发布:redis c语言接口 编辑:程序博客网 时间:2024/06/05 20:24

2015 Multi-University Training 

Contest-5

MZL's chemistry

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 536    Accepted Submission(s): 389

Problem Description

MZL define F(X) as the first ionization energy of the chemical element X

Now he get two chemical elements U,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 that x≠y

 

 

Input

There are several test cases

For each test case,there are two numbers u,v,means the atomic numbers of the two element

 

 

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

 

 

 

 

 

分析:

题目大意:给出两化学元素的序号(<=86),判断两者的第一电离能大小关系。

题目出的不是太好,题中并有没给出任何解决问题所需的信息,若不是化学专业或者有深厚化学基础的人不找资料想必做不出来。只能去网上查找元素第一电离能的规律,既然横竖都要百度,何不一次到位打表水过......

 

 

<pre name="code" class="cpp">#include<iostream>using namespace std;int main(){    double a[] = {0,        1312.0,        2372.3,        520.2,        899.5,        800.6,        1086.5,        1402.3,        1313.9,        1681.0,        2080.7,        495.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,        578.8,        762,        947.0,        941.0,        1139.9,        1350.8,        403.0,        549.5,        600,        640.1,        652.1,        684.3,        702,        710.2,        719.7,        804.4,        731.0,        867.8,        558.3,        708.6,        834,        869.3,        1008.4,        1170.4,        375.7,        502.9,        538.1,        534.4,        527,        533.1,        540,        544.5,        547.1,        593.4,        565.8,        573.0,        581.0,        589.3,        596.7,        603.4,        523.5,        658.5,        761,        770,        760,        840,        880,        870,        890.1,        1007.1,        589.4,        715.6,        703,        812.1,        890,        1037 };    int x, y;    while (scanf("%d %d", &x, &y) != EOF)    {        if (a[x] > a[y])            cout << "FIRST BIGGER" << endl;        else            cout << "SECOND BIGGER" << endl;    }    return 0;}



0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 脸两边骨头太宽怎么办 接了睫毛眼睛疼怎么办 下颌骨错位脸歪怎么办 假体隆鼻感冒了怎么办 打了玻尿酸怀孕怎么办 鼻子上有出血点怎么办 内眼角开小了怎么办 上眼皮肿怎么办小妙招 嫁接的睫毛乱了怎么办 睫毛掉进眼睛里怎么办 痘痘留下的疤痕怎么办 宫颈癌前病变1级怎么办 纹身后结痂很厚怎么办 纹身结痂蹭掉了怎么办 药流20天同房了怎么办 药流23天同房了怎么办 小产后不来月经怎么办 人流12天同房了怎么办 人流20天同房了怎么办 人流后5天同房了怎么办 人流后3天同房了怎么办 人流20后同房了怎么办 上环后月经量多怎么办 上环后喝啤酒了怎么办 取环当天同房了怎么办 生完孩子有外痔怎么办 怀孕了宫腔积液怎么办 做完爱4天怕怀孕怎么办 半永久眉失败了怎么办 取环前2天同房了怎么办 怀孕了发现有子宫肌瘤怎么办 宫腔中央性粘连怎么办 孕妇宫腔粘连带怎么办 内膜厚怎么办吃什么好 功血引起的贫血怎么办 吃宫血宁后月经不来了怎么办 孕晚期胎心不好怎么办 胎心不好怎么办让住院 39 5胎心不好怎么办 肺长了一个肿瘤怎么办 血糖高伤口不愈合怎么办