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

本篇介绍了一个通过输入两种化学元素的原子序号来比较它们第一电离能大小的程序实现方法。该程序利用预设的数据集,直接查询对应元素的第一电离能,并进行比较。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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;
}


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值