1 2 5 3
SECOND BIGGER FIRST BIGGER
#include <iostream>
#include <cstring>
#include <cstdio>
#include <stdlib.h>
#include <algorithm>
using namespace std;
int main()
{
int a[25]=
{
2,10,9,18,7,36,8,
1, 17, 54, 35, 6, 87,
15,53,16,86,4,5,14,12,13,3,11
};
int x,y;
while(~scanf("%d%d",&x,&y))
{
int xx,yy;
for(int i=0; i<25; i++)
{
if(a[i]==x)
{
xx=i;
break;
}
}
for(int i=0; i<25; i++)
{
if(a[i]==y)
{
yy=i;
break;
}
}
if(xx<yy)
printf("FIRST BIGGER\n");
else printf("SECOND BIGGER\n");
}
return 0;
}
版权声明:本文为博主原创文章,如有特殊需要请与博主联系 QQ : 793977586。
原文:http://blog.csdn.net/yeguxin/article/details/47297491