Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdio>
- using namespace std;
- int main(){
- int t; scanf("%d", &t);
- while(t--){
- int n; scanf("%d", &n);
- int a = 0, i;
- for(i = 0; i < n; i++){
- int k; scanf("%d", &k);
- a ^= k;
- }
- cout << a << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement