# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
90119 | 2018-12-20T12:00:22 Z | cs71107 | 속이기 (GA5_fake) | C++14 | 20 ms | 1552 KB |
#include <bits/stdc++.h> #define MOD 1000000007 using namespace std; typedef long long int ll; typedef pair<int,int> pii; typedef pair<int, pii> piii; const int INF = 1e9+1; const int MAXN = 1e5+10; int main() { int n,x; int totxor = 0; ll sum = 0,mn = INF; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d",&x); totxor^=x; mn = min((ll)x,mn); sum+=(ll)x; } if(totxor)printf("0"); else printf("%lld",sum-mn); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 504 KB | Output is correct |
2 | Correct | 2 ms | 508 KB | Output is correct |
3 | Correct | 2 ms | 556 KB | Output is correct |
4 | Correct | 2 ms | 636 KB | Output is correct |
5 | Correct | 2 ms | 656 KB | Output is correct |
6 | Correct | 2 ms | 656 KB | Output is correct |
7 | Correct | 2 ms | 756 KB | Output is correct |
8 | Correct | 2 ms | 756 KB | Output is correct |
9 | Correct | 2 ms | 868 KB | Output is correct |
10 | Correct | 2 ms | 868 KB | Output is correct |
11 | Correct | 2 ms | 884 KB | Output is correct |
12 | Correct | 2 ms | 904 KB | Output is correct |
13 | Correct | 2 ms | 904 KB | Output is correct |
14 | Correct | 2 ms | 904 KB | Output is correct |
15 | Correct | 3 ms | 904 KB | Output is correct |
16 | Correct | 2 ms | 904 KB | Output is correct |
17 | Correct | 2 ms | 904 KB | Output is correct |
18 | Correct | 2 ms | 904 KB | Output is correct |
19 | Correct | 2 ms | 904 KB | Output is correct |
20 | Correct | 2 ms | 904 KB | Output is correct |
21 | Correct | 2 ms | 904 KB | Output is correct |
22 | Correct | 2 ms | 904 KB | Output is correct |
23 | Correct | 2 ms | 904 KB | Output is correct |
24 | Correct | 2 ms | 904 KB | Output is correct |
25 | Correct | 2 ms | 904 KB | Output is correct |
26 | Correct | 2 ms | 964 KB | Output is correct |
27 | Correct | 2 ms | 964 KB | Output is correct |
28 | Correct | 2 ms | 964 KB | Output is correct |
29 | Correct | 2 ms | 964 KB | Output is correct |
30 | Correct | 2 ms | 964 KB | Output is correct |
31 | Correct | 2 ms | 964 KB | Output is correct |
32 | Correct | 2 ms | 964 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 964 KB | Output is correct |
2 | Correct | 2 ms | 964 KB | Output is correct |
3 | Correct | 2 ms | 964 KB | Output is correct |
4 | Correct | 2 ms | 1008 KB | Output is correct |
5 | Correct | 2 ms | 1008 KB | Output is correct |
6 | Correct | 2 ms | 1008 KB | Output is correct |
7 | Correct | 2 ms | 1008 KB | Output is correct |
8 | Correct | 2 ms | 1008 KB | Output is correct |
9 | Correct | 2 ms | 1008 KB | Output is correct |
10 | Correct | 2 ms | 1008 KB | Output is correct |
11 | Correct | 2 ms | 1008 KB | Output is correct |
12 | Correct | 2 ms | 1008 KB | Output is correct |
13 | Correct | 2 ms | 1008 KB | Output is correct |
14 | Correct | 2 ms | 1008 KB | Output is correct |
15 | Correct | 2 ms | 1008 KB | Output is correct |
16 | Correct | 2 ms | 1008 KB | Output is correct |
17 | Correct | 2 ms | 1008 KB | Output is correct |
18 | Correct | 2 ms | 1008 KB | Output is correct |
19 | Correct | 2 ms | 1008 KB | Output is correct |
20 | Correct | 2 ms | 1008 KB | Output is correct |
21 | Correct | 2 ms | 1008 KB | Output is correct |
22 | Correct | 2 ms | 1008 KB | Output is correct |
23 | Correct | 2 ms | 1008 KB | Output is correct |
24 | Correct | 2 ms | 1008 KB | Output is correct |
25 | Correct | 2 ms | 1008 KB | Output is correct |
26 | Correct | 2 ms | 1008 KB | Output is correct |
27 | Correct | 2 ms | 1008 KB | Output is correct |
28 | Correct | 2 ms | 1008 KB | Output is correct |
29 | Correct | 2 ms | 1104 KB | Output is correct |
30 | Correct | 2 ms | 1104 KB | Output is correct |
31 | Correct | 2 ms | 1104 KB | Output is correct |
32 | Correct | 2 ms | 1104 KB | Output is correct |
33 | Correct | 2 ms | 1104 KB | Output is correct |
34 | Correct | 2 ms | 1104 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 1104 KB | Output is correct |
2 | Correct | 2 ms | 1104 KB | Output is correct |
3 | Correct | 2 ms | 1104 KB | Output is correct |
4 | Correct | 2 ms | 1176 KB | Output is correct |
5 | Correct | 2 ms | 1176 KB | Output is correct |
6 | Correct | 2 ms | 1176 KB | Output is correct |
7 | Correct | 2 ms | 1176 KB | Output is correct |
8 | Correct | 2 ms | 1184 KB | Output is correct |
9 | Correct | 2 ms | 1184 KB | Output is correct |
10 | Correct | 2 ms | 1184 KB | Output is correct |
11 | Correct | 2 ms | 1184 KB | Output is correct |
12 | Correct | 2 ms | 1184 KB | Output is correct |
13 | Correct | 2 ms | 1184 KB | Output is correct |
14 | Correct | 2 ms | 1184 KB | Output is correct |
15 | Correct | 2 ms | 1184 KB | Output is correct |
16 | Correct | 2 ms | 1184 KB | Output is correct |
17 | Correct | 2 ms | 1184 KB | Output is correct |
18 | Correct | 2 ms | 1184 KB | Output is correct |
19 | Correct | 2 ms | 1184 KB | Output is correct |
20 | Correct | 2 ms | 1184 KB | Output is correct |
21 | Correct | 2 ms | 1184 KB | Output is correct |
22 | Correct | 2 ms | 1184 KB | Output is correct |
23 | Correct | 2 ms | 1184 KB | Output is correct |
24 | Correct | 2 ms | 1184 KB | Output is correct |
25 | Correct | 2 ms | 1184 KB | Output is correct |
26 | Correct | 2 ms | 1184 KB | Output is correct |
27 | Correct | 2 ms | 1184 KB | Output is correct |
28 | Correct | 2 ms | 1184 KB | Output is correct |
29 | Correct | 2 ms | 1184 KB | Output is correct |
30 | Correct | 2 ms | 1184 KB | Output is correct |
31 | Correct | 2 ms | 1184 KB | Output is correct |
32 | Correct | 2 ms | 1184 KB | Output is correct |
33 | Correct | 2 ms | 1184 KB | Output is correct |
34 | Correct | 2 ms | 1280 KB | Output is correct |
35 | Correct | 2 ms | 1280 KB | Output is correct |
36 | Correct | 2 ms | 1280 KB | Output is correct |
37 | Correct | 2 ms | 1280 KB | Output is correct |
38 | Correct | 2 ms | 1280 KB | Output is correct |
39 | Correct | 2 ms | 1280 KB | Output is correct |
40 | Correct | 2 ms | 1308 KB | Output is correct |
41 | Correct | 2 ms | 1308 KB | Output is correct |
42 | Correct | 2 ms | 1308 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 1464 KB | Output is correct |
2 | Correct | 2 ms | 1476 KB | Output is correct |
3 | Correct | 2 ms | 1476 KB | Output is correct |
4 | Correct | 2 ms | 1500 KB | Output is correct |
5 | Correct | 2 ms | 1500 KB | Output is correct |
6 | Correct | 2 ms | 1500 KB | Output is correct |
7 | Correct | 20 ms | 1500 KB | Output is correct |
8 | Correct | 2 ms | 1500 KB | Output is correct |
9 | Correct | 2 ms | 1552 KB | Output is correct |
10 | Correct | 0 ms | 1552 KB | Output is correct |