Code Render Status : Rendered By HDOJ G++ Code Render Version 0.01 Beta
1 #include <stdio.h> 2 int main() 3 { 4 int n,r,t; 5 while (scanf("%d",&n),n) 6 { 7 r=0; 8 while (n--) 9 { 10 scanf("%d",&t); 11 r^=t; 12 } 13 printf("%d\n",r); 14 } 15 return 0; 16 }