OJ-Problems-Source/HDOJ/2897_autoAC.cpp

20 lines
386 B
C++
Raw Normal View History

#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;
}