Submission #16321

#TimeUsernameProblemLanguageResultExecution timeMemory
16321tonyjjw속이기 (GA5_fake)C++14
100 / 100
0 ms1084 KiB
#include<stdio.h> int N; int main(){ scanf("%d",&N); int sum=0,min=1e9,xx=0; int v; for(int i=0;i<N;i++){ scanf("%d",&v); sum+=v; xx^=v; if(min>v)min=v; } if(xx==0){ printf("%d",sum-min); } else puts("0"); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...