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>
#define INF 0x7fffffff
int N, X, Ans, Min=INF;
void input(void)
{
int i, temp;
scanf("%d",&N);
for(i=1 ; i<=N ; i++)
{
scanf("%d",&temp);
X^=temp;
Ans+=temp;
if(Min>temp)
Min=temp;
}
Ans-=Min;
}
void output(void)
{
if(X)
printf("0");
else
printf("%d",Ans);
}
int main(void)
{
input();
output();
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... |