MZL's chemistry
 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
 Total Submission(s): 405    Accepted Submission(s): 320
 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 2
 5 3
 Sample Output
 SECOND BIGGER
 
FIRST BIGGER
//根据第一电离能变化规律打表
#include <stdio.h>
#include <string.h>
int a[200];
int main()
{
    memset(a,0,sizeof(a));
    a[1]=1100,a[2]=1101;
    for(int i=3;i<=10;i++)
        a[i]=i*100;
    for(int k=11;k<=18;k++)
        a[k]=k;
    a[35]=15,a[36]=16;
    a[53]=12,a[54]=13;
    a[83]=10,a[84]=11;
    a[4]=500,a[5]=400,a[7]=800,a[8]=700;
    a[12]=13,a[13]=12,a[15]=16,a[16]=15;
    int n,m;
    while(~scanf("%d%d",&n,&m))
    {
        if(a[n]>a[m])
            printf("FIRST BIGGER\n");
        else
            printf("SECOND BIGGER\n");
    }
    return 0;
} 










