Advertisement
jakaria_hossain

codechef - Delimma

Aug 4th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. int main()
  5. {
  6. int t;
  7. cin>>t;
  8. while(t--)
  9. {
  10. string s;
  11. cin>>s;
  12. int cnt=0;
  13. for(int i=0;i<s.size();i++)
  14. {
  15. if(s[i]=='1')cnt++;
  16. }
  17. if(cnt%2)cout<< "WIN"<<endl;
  18. else cout<< "LOSE"<<endl;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement