Submission #2885

#TimeUsernameProblemLanguageResultExecution timeMemory
2885kipa00속이기 (GA5_fake)C++98
100 / 100
0 ms1088 KiB
#include <cstdio> using namespace std; int main() { int N, min, i, check = 0; long long int sum = 0; scanf("%d", &N); for (i=0; i<N; ++i) { int tmp; scanf("%d", &tmp); check ^= tmp; if (i == 0) min = tmp; else if (min > tmp) min = tmp; sum += tmp; } if (check) { printf("0\n"); } else { printf("%lld\n", sum - min); } 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...