Lang:G++
Edit12345678910111213141516171819202122#include <iostream>#include <cstdio>using namespace std;const int MAXN = 20000 + 10;int a[MAXN];int main() {int p, n, t;while( ~scanf( "%d", &n ) ) {p = 0;while( n-- ) {scanf( "%d", &t );if( t % 4 == 1 || t % 4 == 2 ) p ^= t;else if( t % 4 == 3 ) p ^= ( t + 1 );else p ^= ( t - 1 );}if( p ) printf( "Alice\n" );else printf( "Bob\n" );}return 0;}