mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
23 lines
362 B
C++
23 lines
362 B
C++
|
#include<stdio.h>
|
||
|
#include<string.h>
|
||
|
#include<stdlib.h>
|
||
|
#include<math.h>
|
||
|
int main()
|
||
|
{
|
||
|
int n,m;
|
||
|
int i;
|
||
|
int ti,ji;
|
||
|
int ans;
|
||
|
while(scanf("%d%d",&n,&m)!=EOF)
|
||
|
{
|
||
|
ans=0;
|
||
|
while(n--)
|
||
|
{
|
||
|
scanf("%d%d",&ti,&ji);
|
||
|
ans^=abs(abs(ti-ji)-1);
|
||
|
}
|
||
|
printf("%s\n",ans==0?"BAD LUCK!":"I WIN!");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|