# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16320 | tonyjjw | 속이기 (GA5_fake) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int N;
int main(){
scanf("%d",&N);
int sum=0,min=1e9,xor=0;
int v;
for(int i=0;i<N;i++){
scanf("%d",&v);
sum+=v;
xor^=v;
if(min>v)min=v;
}
if(xor==0){
printf("%d",sum-min);
}
else
puts("0");
return 0;
}