Submission #5894

#TimeUsernameProblemLanguageResultExecution timeMemory
5894baneling100속이기 (GA5_fake)C++98
100 / 100
0 ms1088 KiB
#include <stdio.h> #define INF 0x7fffffff int N, X, Ans, Min=INF; void input(void) { int i, temp; scanf("%d",&N); for(i=1 ; i<=N ; i++) { scanf("%d",&temp); X^=temp; Ans+=temp; if(Min>temp) Min=temp; } Ans-=Min; } void output(void) { if(X) printf("0"); else printf("%d",Ans); } int main(void) { input(); output(); 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...