标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4069 Accepted Submission(s): 1872
#include <iostream> #include <cstring> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <map> using namespace std; int main() { int n,p,q; while(scanf("%d%d%d",&n,&p,&q)!=EOF){ if(0<n%(p+q)&&n%(p+q)<=p){ printf("LOST\n"); }else printf("WIN\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5768838.html