#include <math.h>
#include <stdio.h>
int main() {
int N;
scanf("%d",&N);
int tmp,r= 0;
for (int i=0;i<N;i++) {
scanf("%d",&tmp);
r^= tmp;
}
printf("%d",r);
return 0;
}
#include <stdio.h>
int main() {
int N;
scanf("%d",&N);
int tmp,r= 0;
for (int i=0;i<N;i++) {
scanf("%d",&tmp);
r^= tmp;
}
printf("%d",r);
return 0;
}
No comments:
Post a Comment