标签:des com http blog style class div img code c java
Time Limit: 2000/1000 MS
(Java/Others) Memory Limit: 32768/32768 K
(Java/Others)
Total Submission(s): 858 Accepted
Submission(s): 412
1 #include<stdio.h> 2 #include<string.h> 3 #include<map> 4 #include<math.h> 5 #include<iostream> 6 #include<algorithm> 7 using namespace std; 8 9 int main() 10 { 11 int t,i,n,ans,j,x; 12 scanf("%d",&t); 13 for(i=1;i<=t;i++) 14 { 15 ans=0; 16 scanf("%d",&n); 17 for(j=0;j<n;j++) 18 { 19 scanf("%d",&x); 20 if(x%4==0)x--; 21 else if(x%4==3)x++; 22 ans^=x; 23 } 24 if(ans) 25 printf("Alice\n"); 26 else printf("Bob\n"); 27 } 28 }
Nim or not Nim? hdu3032 SG值打表找规律,布布扣,bubuko.com
Nim or not Nim? hdu3032 SG值打表找规律
标签:des com http blog style class div img code c java
原文地址:http://www.cnblogs.com/ERKE/p/3702222.html