先上题目:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2474 Accepted Submission(s): 1141
1 #include <iostream> 2 #define min(x,y) (x < y ? x : y) 3 using namespace std; 4 5 int main() 6 { 7 ios::sync_with_stdio(false); 8 int n,p,q; 9 while(cin>>n>>p>>q){ 10 if(n%(p+q)!=0 && n%(p+q)<=p) cout<<"LOST"<<endl; 11 else cout<<"WIN"<<endl; 12 } 13 return 0; 14 }
HDU - 2897 - 邂逅明下,布布扣,bubuko.com
原文:http://www.cnblogs.com/sineatos/p/3888898.html