hiho week 45 register

Ended

Participants:565

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-16 12:28:34

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstdio>
int main()
{
    int N;
    char c;
    int flag = 0;
    scanf("%d\n",&N);
    for(int i=0;i<=N;i++){
        scanf("%c",&c);
        if(c=='H') flag ^= i+1;
    }
    printf(flag?"Alice\n":"Bob\n");
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX