Submission #4129

#TimeUsernameProblemLanguageResultExecution timeMemory
4129pichulia속이기 (GA5_fake)C++98
100 / 100
0 ms1096 KiB
#include<stdio.h> long long int s,t,a[1004],m=-1; int n; int main() { int i, j; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lld",&a[i]); s+=a[i]; t^=a[i]; if(m<0||m>a[i])m=a[i]; } if(t==0)printf("%lld\n",s-m); else printf("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...