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 <cstdio>
int n,t,h,m=1e6,x;
int main(){
scanf("%d",&n);
for (int i=0; i<n; i++) {
scanf("%d",&t);
h += t;
if(m > t) m = t;
x ^= t;
}
if(x) m=h;
printf("%d",h-m);
}
# | 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... |