HNU 12826 Balloons Colors

题目链接: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 ;
}
上一篇:[算法模版]子序列DP


下一篇:Jquery弹出窗口