hiho week 45 register

Ended

Participants:565

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-09 21:18:28

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
#include <cstdio>
int n;
char g[10009];
int main() {
    int s(0);
    scanf("%d%s", &n, g);
    for (int i = 0; i < n; ++ i) if (g[i]=='H') s^=i+1;
    puts(s?"Alice":"Bob");
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX