fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int t;
  6. scanf("%d", &t);
  7. while(t--)
  8. {
  9. long long int a,n,s=0,i;
  10. scanf("%lld", &n);
  11. for(i=0;i<n;i++)
  12. {
  13. scanf("%lld", &a);
  14. s^=a;
  15. }
  16. printf("%lld\n",s);
  17. }
  18. return 0;
  19. }
Time limit exceeded #stdin #stdout 5s 3460KB
stdin
Standard input is empty
stdout
Standard output is empty