Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- int main()
- {
- int t;
- cin>>t;
- while(t--)
- {
- string s;
- cin>>s;
- int cnt=0;
- for(int i=0;i<s.size();i++)
- {
- if(s[i]=='1')cnt++;
- }
- if(cnt%2)cout<< "WIN"<<endl;
- else cout<< "LOSE"<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement