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, s, m = 987654321, x, k;
int main() {
scanf("%d", &n);
while(n--) {
scanf("%d", &k);
x ^= k;
s += k;
if(m > k) m = k;
}
printf("%d\n", x ? 0 : 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... |