http://acm.hdu.edu.cn/showproblem.php?pid=1730
需要考录的问题
#include <stdio.h>
int abs(int a, int b)
{
if(a > b)return a - b;
return b - a;
}
int main()
{
int t;
int n, m;
int a, b;
while(scanf("%d%d", &n, &m)!=EOF){
t = 0;
while(n--){
scanf("%d%d", &a, &b);
t = t^(abs(a, b)-1);//深思
}
if(t == 0)printf("BAD LUCK!\n");
else printf("I WIN!\n");
}
return 0;
}