hiho week 45 register

Ended

Participants:565

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-16 19:30:03

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
#include<cstdio>
int main(void) { 
    int N,ans=0;char ch[10005];
    scanf("%d%s", &N,ch);
    for (int i = 0; i < N; i++){
        if (ch[i]=='H') ans ^= (i+1);
    }
    printf("%s\n", ans ? "Alice" : "Bob");
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX