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, mi=1111111, a, sum, xo, i;
int main(){
scanf("%d", &n);
for(; i<n; i++){
scanf("%d", &a);
sum+=a, xo^=a;
if(mi>a)mi=a;
}
if(xo)puts("0");
else printf("%d", sum-mi);
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... |