# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
16818 |
2015-09-30T23:39:38 Z |
kdh9949 |
속이기 (GA5_fake) |
C++ |
|
0 ms |
1084 KB |
#include<stdio.h>
int n,k,xorsum,sum,min;
int main()
{
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&k);
xorsum^=k;
sum+=k;
if(min<k)min=k;
}
printf("%d",xorsum?-1:sum-min);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |