Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main() {
- ios_base::sync_with_stdio(false);
- int T;
- cin >> T;
- while (T--) {
- int n;
- cin >> n;
- int w = 0;
- while (n--) {
- int x;
- cin >> x;
- if (x == 0)
- continue;
- if (x % 2 == 0)
- w = (w + 1) % 2;
- }
- if (w == 0)
- cout << "Joke is the bestest player in teh wurld\n";
- else
- cout << "Puguh is the bestest player in teh wurld\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement