#include<cmath> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; int main() { int n,p,q; int i,j,k; while(scanf("%d%d%d",&n,&p,&q)!=EOF) { if(n%(p+q)<=p&&n%(p+q)!=0) { printf("LOST\n"); } else printf("WIN\n"); } return 0; }
时间: 2024-10-12 04:35:45