OJ-Problems-Source/HDOJ/2897_autoAC.cpp
2016-08-24 18:25:36 +08:00

20 lines
386 B
C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main(){
int n,p,q;
while(~scanf("%d%d%d",&n,&p,&q)){
if(n%(p+q)==0){
puts("WIN");
}else {
int tmp=n%(p+q);
if(tmp<=p){
puts("LOST");
}else
puts("WIN");
}
}
return 0;
}