hiho week 44 register

Ended

Participants:930

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-03 13:12:15

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h> 
main()
{  int m,A[10000];
    int i,sum;  
scanf("%d",&m); 
     for(i=0;i<m;i++) 
         scanf("%d",&A[i]);
     sum=A[0];  
     for(i=1;i<m;i++)
       sum= sum^A[i];
     
     if(sum==0) 
         printf("Bob");
     else 
         printf("Alice");
}
      
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX