题目链接:http://acm.hnu.cn/online/?action=problem&type=show&id=12826&courseid=268
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std; int main()
{
int T,n,x,y;
scanf("%d",&T);
while(T--)
{
scanf("%d%d%d",&n,&x,&y);
int f,e;
scanf("%d",&f);
for(int i = ;i < n;++i)
scanf("%d",&e);
if(x == f && y != e)
puts("EASY");
else if(x != f && y == e)
puts("HARD");
else if(x == f && y == e)
puts("BOTH");
else puts("OKAY");
}
return ;
}