#include <stdio.h> int main(){ int n, t, x; while(scanf("%d", &n) == 1){ x = 0; while(n--){ scanf("%d", &t); x ^= t; } printf("%d\n", x); } return 0; }
2022-05-31 16:24:29
#include <stdio.h> int main(){ int n, t, x; while(scanf("%d", &n) == 1){ x = 0; while(n--){ scanf("%d", &t); x ^= t; } printf("%d\n", x); } return 0; }