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 <iostream>
typedef long long ll;
ll min(ll a,ll b){ return a>b?b:a; }
main(){
int n;
std::cin>>n;
ll sum=0, minval=1ll<<60, buf, allxor=0;
for(;n--;){
std::cin>>buf;
sum+=buf; minval=min(minval,buf); allxor^=buf;
}
if(allxor) std::cout<<'0';
else std::cout<<sum-minval;
}
# | 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... |