Submission #8813

#TimeUsernameProblemLanguageResultExecution timeMemory
8813gs14004속이기 (GA5_fake)C++98
100 / 100
0 ms1088 KiB
#include <cstdio> int n,t,h,m=1e6,cnt[20]; int main(){ scanf("%d",&n); for (int i=0; i<n; i++) { scanf("%d",&t); h += t; if(m > t) m = t; int piv = 0; while (t) { if(t&1) cnt[piv]++; t >>= 1; piv++; } } for (int i=0; i<20; i++) { if(cnt[i]&1){ puts("0");return 0; } } printf("%d",h-m); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...