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,XOR,U,SUM;
int main()
{
int i,x;
scanf ("%d",&N); U = 100000000;
while (N--){
scanf ("%d",&x);
SUM += x;
XOR ^= x;
if (U > x)
U = x;
}
if (XOR != 0) SUM = U;
printf ("%d",SUM-U);
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... |