NYOJ23取石子(一)
1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int T,m,n; 6 cin>>T; 7 while(T--) 8 { 9 cin>>n>>m; 10 if(n%(m+1)) cout<<"Win"<<endl; 11 else cout<<"Lose"<<endl; 12 } 13 return 0; 14 }
1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int T,m,n; 6 cin>>T; 7 while(T--) 8 { 9 cin>>n>>m; 10 if(n%(m+1)) cout<<"Win"<<endl; 11 else cout<<"Lose"<<endl; 12 } 13 return 0; 14 }