SHARE
TWEET

codechef - Delimma

jakaria_hossain Aug 4th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top