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>
using namespace std;
int main() {
int N, min, i, check = 0;
long long int sum = 0;
scanf("%d", &N);
for (i=0; i<N; ++i) {
int tmp;
scanf("%d", &tmp);
check ^= tmp;
if (i == 0) min = tmp;
else if (min > tmp) min = tmp;
sum += tmp;
}
if (check) {
printf("0\n");
} else {
printf("%lld\n", sum - min);
}
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... |