이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |