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,xx=0;
int v;
for(int i=0;i<N;i++){
scanf("%d",&v);
sum+=v;
xx^=v;
if(min>v)min=v;
}
if(xx==0){
printf("%d",sum-min);
}
else
puts("0");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |