Submission #2829

#TimeUsernameProblemLanguageResultExecution timeMemory
2829gs13105속이기 (GA5_fake)C++98
100 / 100
0 ms1092 KiB
#include <stdio.h> int arr[1000]; int main() { int n,x=0,s=0,mn=1000000,i; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&arr[i]); for(i=0;i<n;i++) { x^=arr[i]; s+=arr[i]; mn=arr[i]<mn?arr[i]:mn; } if(x!=0) printf("0"); else printf("%d",s-mn); 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...