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,x,m=1e8,s;
int main()
{
scanf("%d",&n);
int i;
for(i=0;i<n;i++){
int t;scanf("%d",&t);
x^=t;
m=m>t?t:m;
s+=t;
}
if(x)printf("0");
else printf("%d",s-m);
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... |