hdu 1730 Northcott Game
//Time 0ms, Memory 228K
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { int t,j,n,m,ans; while(scanf("%d%d",&n,&m)!=EOF) { ans=0; for(int i=0;i<n;i++) { scanf("%d%d",&t,&j); m=abs(t-j)-1; ans^=m; } if(ans) printf("I WIN!\n"); else printf("BAD LUCK!\n"); } return 0; }