mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
27767e72ab
2800-2899
20 lines
386 B
C++
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;
|
|
}
|