hiho week 44 register

Ended

Participants:930

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-03 15:50:32

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int n, a, b;
    while(cin >> n) {
        a = 0;
        while(n--) {
            cin >> b;
            a ^= b;
        }
        if(a == 0) cout << "Bob" << endl;
        else cout << "Alice" << endl;
    }
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX