Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.   ios_base::sync_with_stdio(false);
  9.   int T;
  10.   cin >> T;
  11.   while (T--) {
  12.     int n;
  13.     cin >> n;
  14.     int w = 0;
  15.     while (n--) {
  16.       int x;
  17.       cin >> x;
  18.       if (x == 0)
  19.         continue;
  20.       if (x % 2 == 0)
  21.         w = (w + 1) % 2;
  22.     }
  23.     if (w == 0)
  24.       cout << "Joke is the bestest player in teh wurld\n";
  25.     else
  26.       cout << "Puguh is the bestest player in teh wurld\n";
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement