Submission #17645

#TimeUsernameProblemLanguageResultExecution timeMemory
17645Namnamseo속이기 (GA5_fake)C++14
100 / 100
0 ms1716 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...