# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
721866 | 2023-04-11T08:03:37 Z | Son | Duathlon (APIO18_duathlon) | C++14 | 125 ms | 28204 KB |
#include <bits/stdc++.h> using namespace std; #define LL long long #define pb push_back int n,m; vector < int > E[100005]; int low[100005], num[100005]; int idx = 0; vector < int > bcc_group[200005]; int bccs = 1; vector < int > stck; int N = 0, sub[200005]; LL ans = 0; void dfs1( int u, int p ){ low[u] = num[u] = ++idx; stck.pb(u); N++; for ( int v : E[u] ){ if ( num[v] ) low[u] = min( low[u], num[v] ); else { dfs1(v,u); low[u] = min(low[u], low[v]); if ( low[v] >= num[u] ){ bcc_group[u].pb(n + bccs); while ( !bcc_group[n+bccs].size() || bcc_group[n+bccs].back() != v ){ bcc_group[n+bccs].pb(stck.back()); stck.pop_back(); } bccs++; } } } } void dfs2( int u ){ sub[u] = (u <= n); for ( int v : bcc_group[u] ){ dfs2(v); sub[u] += sub[v]; if ( u > n ) ans -= bcc_group[u].size() * 1LL * (sub[v]) * (sub[v]-1); } if (u > n){ ans -= bcc_group[u].size() * 1LL * (N-sub[u]) * (N - sub[u] - 1); } } int main(){ scanf("%d%d",&n,&m); for ( int i = 1; i <= m; i++ ){ int u , v; scanf("%d%d",&u,&v); E[u].pb(v); E[v].pb(u); } for ( int i = 1; i <= n; i++ ){ if ( num[i] == 0 ){ N = 0; dfs1(i,-1); ans += N * 1LL * (N-1) * (N-2); dfs2(i); } } printf("%lld\n",ans); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 7252 KB | Output is correct |
2 | Correct | 4 ms | 7252 KB | Output is correct |
3 | Correct | 4 ms | 7360 KB | Output is correct |
4 | Correct | 5 ms | 7364 KB | Output is correct |
5 | Correct | 5 ms | 7252 KB | Output is correct |
6 | Correct | 4 ms | 7252 KB | Output is correct |
7 | Correct | 4 ms | 7364 KB | Output is correct |
8 | Correct | 4 ms | 7252 KB | Output is correct |
9 | Correct | 5 ms | 7364 KB | Output is correct |
10 | Correct | 5 ms | 7252 KB | Output is correct |
11 | Correct | 4 ms | 7364 KB | Output is correct |
12 | Correct | 4 ms | 7364 KB | Output is correct |
13 | Correct | 4 ms | 7252 KB | Output is correct |
14 | Correct | 4 ms | 7360 KB | Output is correct |
15 | Correct | 4 ms | 7352 KB | Output is correct |
16 | Correct | 4 ms | 7264 KB | Output is correct |
17 | Correct | 6 ms | 7252 KB | Output is correct |
18 | Correct | 4 ms | 7360 KB | Output is correct |
19 | Correct | 6 ms | 7252 KB | Output is correct |
20 | Correct | 5 ms | 7364 KB | Output is correct |
21 | Correct | 6 ms | 7364 KB | Output is correct |
22 | Correct | 4 ms | 7360 KB | Output is correct |
23 | Correct | 4 ms | 7252 KB | Output is correct |
24 | Correct | 4 ms | 7252 KB | Output is correct |
25 | Correct | 4 ms | 7360 KB | Output is correct |
26 | Correct | 4 ms | 7368 KB | Output is correct |
27 | Correct | 5 ms | 7436 KB | Output is correct |
28 | Correct | 4 ms | 7252 KB | Output is correct |
29 | Correct | 5 ms | 7252 KB | Output is correct |
30 | Correct | 6 ms | 7244 KB | Output is correct |
31 | Correct | 5 ms | 7368 KB | Output is correct |
32 | Correct | 4 ms | 7352 KB | Output is correct |
33 | Correct | 4 ms | 7356 KB | Output is correct |
34 | Correct | 4 ms | 7248 KB | Output is correct |
35 | Correct | 6 ms | 7380 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 7252 KB | Output is correct |
2 | Correct | 4 ms | 7252 KB | Output is correct |
3 | Correct | 4 ms | 7360 KB | Output is correct |
4 | Correct | 5 ms | 7364 KB | Output is correct |
5 | Correct | 5 ms | 7252 KB | Output is correct |
6 | Correct | 4 ms | 7252 KB | Output is correct |
7 | Correct | 4 ms | 7364 KB | Output is correct |
8 | Correct | 4 ms | 7252 KB | Output is correct |
9 | Correct | 5 ms | 7364 KB | Output is correct |
10 | Correct | 5 ms | 7252 KB | Output is correct |
11 | Correct | 4 ms | 7364 KB | Output is correct |
12 | Correct | 4 ms | 7364 KB | Output is correct |
13 | Correct | 4 ms | 7252 KB | Output is correct |
14 | Correct | 4 ms | 7360 KB | Output is correct |
15 | Correct | 4 ms | 7352 KB | Output is correct |
16 | Correct | 4 ms | 7264 KB | Output is correct |
17 | Correct | 6 ms | 7252 KB | Output is correct |
18 | Correct | 4 ms | 7360 KB | Output is correct |
19 | Correct | 6 ms | 7252 KB | Output is correct |
20 | Correct | 5 ms | 7364 KB | Output is correct |
21 | Correct | 6 ms | 7364 KB | Output is correct |
22 | Correct | 4 ms | 7360 KB | Output is correct |
23 | Correct | 4 ms | 7252 KB | Output is correct |
24 | Correct | 4 ms | 7252 KB | Output is correct |
25 | Correct | 4 ms | 7360 KB | Output is correct |
26 | Correct | 4 ms | 7368 KB | Output is correct |
27 | Correct | 5 ms | 7436 KB | Output is correct |
28 | Correct | 4 ms | 7252 KB | Output is correct |
29 | Correct | 5 ms | 7252 KB | Output is correct |
30 | Correct | 6 ms | 7244 KB | Output is correct |
31 | Correct | 5 ms | 7368 KB | Output is correct |
32 | Correct | 4 ms | 7352 KB | Output is correct |
33 | Correct | 4 ms | 7356 KB | Output is correct |
34 | Correct | 4 ms | 7248 KB | Output is correct |
35 | Correct | 6 ms | 7380 KB | Output is correct |
36 | Correct | 5 ms | 7252 KB | Output is correct |
37 | Correct | 5 ms | 7360 KB | Output is correct |
38 | Correct | 5 ms | 7360 KB | Output is correct |
39 | Correct | 4 ms | 7252 KB | Output is correct |
40 | Correct | 4 ms | 7252 KB | Output is correct |
41 | Correct | 6 ms | 7416 KB | Output is correct |
42 | Correct | 4 ms | 7252 KB | Output is correct |
43 | Correct | 4 ms | 7252 KB | Output is correct |
44 | Correct | 4 ms | 7352 KB | Output is correct |
45 | Correct | 4 ms | 7252 KB | Output is correct |
46 | Correct | 4 ms | 7364 KB | Output is correct |
47 | Correct | 5 ms | 7360 KB | Output is correct |
48 | Correct | 5 ms | 7252 KB | Output is correct |
49 | Correct | 4 ms | 7252 KB | Output is correct |
50 | Correct | 4 ms | 7356 KB | Output is correct |
51 | Correct | 4 ms | 7252 KB | Output is correct |
52 | Correct | 4 ms | 7364 KB | Output is correct |
53 | Correct | 4 ms | 7360 KB | Output is correct |
54 | Correct | 4 ms | 7380 KB | Output is correct |
55 | Correct | 4 ms | 7364 KB | Output is correct |
56 | Correct | 4 ms | 7360 KB | Output is correct |
57 | Correct | 6 ms | 7364 KB | Output is correct |
58 | Correct | 5 ms | 7356 KB | Output is correct |
59 | Correct | 5 ms | 7252 KB | Output is correct |
60 | Correct | 6 ms | 7412 KB | Output is correct |
61 | Correct | 6 ms | 7368 KB | Output is correct |
62 | Correct | 5 ms | 7252 KB | Output is correct |
63 | Correct | 4 ms | 7252 KB | Output is correct |
64 | Correct | 4 ms | 7380 KB | Output is correct |
65 | Correct | 5 ms | 7364 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 79 ms | 23120 KB | Output is correct |
2 | Correct | 77 ms | 23204 KB | Output is correct |
3 | Correct | 84 ms | 23208 KB | Output is correct |
4 | Correct | 93 ms | 22656 KB | Output is correct |
5 | Correct | 86 ms | 19616 KB | Output is correct |
6 | Correct | 86 ms | 22044 KB | Output is correct |
7 | Correct | 86 ms | 20292 KB | Output is correct |
8 | Correct | 95 ms | 20808 KB | Output is correct |
9 | Correct | 92 ms | 18664 KB | Output is correct |
10 | Correct | 76 ms | 18608 KB | Output is correct |
11 | Correct | 68 ms | 15848 KB | Output is correct |
12 | Correct | 73 ms | 15692 KB | Output is correct |
13 | Correct | 82 ms | 15676 KB | Output is correct |
14 | Correct | 68 ms | 15416 KB | Output is correct |
15 | Correct | 43 ms | 14592 KB | Output is correct |
16 | Correct | 42 ms | 14392 KB | Output is correct |
17 | Correct | 7 ms | 9168 KB | Output is correct |
18 | Correct | 7 ms | 9152 KB | Output is correct |
19 | Correct | 8 ms | 9024 KB | Output is correct |
20 | Correct | 6 ms | 9040 KB | Output is correct |
21 | Correct | 6 ms | 9104 KB | Output is correct |
22 | Correct | 7 ms | 9040 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 7368 KB | Output is correct |
2 | Correct | 5 ms | 7372 KB | Output is correct |
3 | Correct | 7 ms | 7368 KB | Output is correct |
4 | Correct | 5 ms | 7508 KB | Output is correct |
5 | Correct | 5 ms | 7444 KB | Output is correct |
6 | Correct | 4 ms | 7520 KB | Output is correct |
7 | Correct | 5 ms | 7508 KB | Output is correct |
8 | Correct | 4 ms | 7500 KB | Output is correct |
9 | Correct | 5 ms | 7508 KB | Output is correct |
10 | Correct | 5 ms | 7380 KB | Output is correct |
11 | Correct | 5 ms | 7372 KB | Output is correct |
12 | Correct | 5 ms | 7368 KB | Output is correct |
13 | Correct | 5 ms | 7376 KB | Output is correct |
14 | Correct | 5 ms | 7380 KB | Output is correct |
15 | Correct | 6 ms | 7524 KB | Output is correct |
16 | Correct | 5 ms | 7380 KB | Output is correct |
17 | Correct | 5 ms | 7424 KB | Output is correct |
18 | Correct | 6 ms | 7420 KB | Output is correct |
19 | Correct | 5 ms | 7372 KB | Output is correct |
20 | Correct | 5 ms | 7380 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 86 ms | 18016 KB | Output is correct |
2 | Correct | 80 ms | 18112 KB | Output is correct |
3 | Correct | 76 ms | 18136 KB | Output is correct |
4 | Correct | 78 ms | 18068 KB | Output is correct |
5 | Correct | 73 ms | 18136 KB | Output is correct |
6 | Correct | 104 ms | 28204 KB | Output is correct |
7 | Correct | 85 ms | 24508 KB | Output is correct |
8 | Correct | 91 ms | 22924 KB | Output is correct |
9 | Correct | 97 ms | 21404 KB | Output is correct |
10 | Correct | 99 ms | 18120 KB | Output is correct |
11 | Correct | 93 ms | 18172 KB | Output is correct |
12 | Correct | 76 ms | 18104 KB | Output is correct |
13 | Correct | 91 ms | 18108 KB | Output is correct |
14 | Correct | 88 ms | 17700 KB | Output is correct |
15 | Correct | 67 ms | 17032 KB | Output is correct |
16 | Correct | 43 ms | 14600 KB | Output is correct |
17 | Correct | 46 ms | 17120 KB | Output is correct |
18 | Correct | 53 ms | 17092 KB | Output is correct |
19 | Correct | 51 ms | 17236 KB | Output is correct |
20 | Correct | 63 ms | 17212 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 7380 KB | Output is correct |
2 | Correct | 4 ms | 7380 KB | Output is correct |
3 | Correct | 5 ms | 7372 KB | Output is correct |
4 | Correct | 4 ms | 7404 KB | Output is correct |
5 | Correct | 4 ms | 7380 KB | Output is correct |
6 | Correct | 5 ms | 7380 KB | Output is correct |
7 | Correct | 5 ms | 7380 KB | Output is correct |
8 | Correct | 5 ms | 7380 KB | Output is correct |
9 | Correct | 5 ms | 7372 KB | Output is correct |
10 | Correct | 6 ms | 7376 KB | Output is correct |
11 | Correct | 6 ms | 7380 KB | Output is correct |
12 | Correct | 5 ms | 7508 KB | Output is correct |
13 | Correct | 4 ms | 7508 KB | Output is correct |
14 | Correct | 5 ms | 7508 KB | Output is correct |
15 | Correct | 4 ms | 7496 KB | Output is correct |
16 | Correct | 5 ms | 7368 KB | Output is correct |
17 | Correct | 5 ms | 7380 KB | Output is correct |
18 | Correct | 5 ms | 7380 KB | Output is correct |
19 | Correct | 5 ms | 7380 KB | Output is correct |
20 | Correct | 5 ms | 7380 KB | Output is correct |
21 | Correct | 5 ms | 7404 KB | Output is correct |
22 | Correct | 5 ms | 7380 KB | Output is correct |
23 | Correct | 5 ms | 7380 KB | Output is correct |
24 | Correct | 5 ms | 7380 KB | Output is correct |
25 | Correct | 4 ms | 7380 KB | Output is correct |
26 | Correct | 5 ms | 7364 KB | Output is correct |
27 | Correct | 4 ms | 7364 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 74 ms | 18048 KB | Output is correct |
2 | Correct | 83 ms | 18420 KB | Output is correct |
3 | Correct | 100 ms | 17804 KB | Output is correct |
4 | Correct | 95 ms | 16588 KB | Output is correct |
5 | Correct | 75 ms | 15276 KB | Output is correct |
6 | Correct | 77 ms | 14756 KB | Output is correct |
7 | Correct | 70 ms | 14488 KB | Output is correct |
8 | Correct | 82 ms | 14176 KB | Output is correct |
9 | Correct | 87 ms | 14008 KB | Output is correct |
10 | Correct | 61 ms | 13948 KB | Output is correct |
11 | Correct | 64 ms | 13736 KB | Output is correct |
12 | Correct | 54 ms | 13736 KB | Output is correct |
13 | Correct | 76 ms | 13904 KB | Output is correct |
14 | Correct | 67 ms | 16104 KB | Output is correct |
15 | Correct | 89 ms | 24292 KB | Output is correct |
16 | Correct | 102 ms | 22228 KB | Output is correct |
17 | Correct | 90 ms | 22564 KB | Output is correct |
18 | Correct | 108 ms | 20904 KB | Output is correct |
19 | Correct | 99 ms | 16632 KB | Output is correct |
20 | Correct | 96 ms | 16688 KB | Output is correct |
21 | Correct | 88 ms | 16600 KB | Output is correct |
22 | Correct | 86 ms | 16040 KB | Output is correct |
23 | Correct | 69 ms | 15408 KB | Output is correct |
24 | Correct | 73 ms | 17484 KB | Output is correct |
25 | Correct | 100 ms | 17576 KB | Output is correct |
26 | Correct | 101 ms | 16872 KB | Output is correct |
27 | Correct | 75 ms | 16836 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 7252 KB | Output is correct |
2 | Correct | 4 ms | 7252 KB | Output is correct |
3 | Correct | 4 ms | 7360 KB | Output is correct |
4 | Correct | 5 ms | 7364 KB | Output is correct |
5 | Correct | 5 ms | 7252 KB | Output is correct |
6 | Correct | 4 ms | 7252 KB | Output is correct |
7 | Correct | 4 ms | 7364 KB | Output is correct |
8 | Correct | 4 ms | 7252 KB | Output is correct |
9 | Correct | 5 ms | 7364 KB | Output is correct |
10 | Correct | 5 ms | 7252 KB | Output is correct |
11 | Correct | 4 ms | 7364 KB | Output is correct |
12 | Correct | 4 ms | 7364 KB | Output is correct |
13 | Correct | 4 ms | 7252 KB | Output is correct |
14 | Correct | 4 ms | 7360 KB | Output is correct |
15 | Correct | 4 ms | 7352 KB | Output is correct |
16 | Correct | 4 ms | 7264 KB | Output is correct |
17 | Correct | 6 ms | 7252 KB | Output is correct |
18 | Correct | 4 ms | 7360 KB | Output is correct |
19 | Correct | 6 ms | 7252 KB | Output is correct |
20 | Correct | 5 ms | 7364 KB | Output is correct |
21 | Correct | 6 ms | 7364 KB | Output is correct |
22 | Correct | 4 ms | 7360 KB | Output is correct |
23 | Correct | 4 ms | 7252 KB | Output is correct |
24 | Correct | 4 ms | 7252 KB | Output is correct |
25 | Correct | 4 ms | 7360 KB | Output is correct |
26 | Correct | 4 ms | 7368 KB | Output is correct |
27 | Correct | 5 ms | 7436 KB | Output is correct |
28 | Correct | 4 ms | 7252 KB | Output is correct |
29 | Correct | 5 ms | 7252 KB | Output is correct |
30 | Correct | 6 ms | 7244 KB | Output is correct |
31 | Correct | 5 ms | 7368 KB | Output is correct |
32 | Correct | 4 ms | 7352 KB | Output is correct |
33 | Correct | 4 ms | 7356 KB | Output is correct |
34 | Correct | 4 ms | 7248 KB | Output is correct |
35 | Correct | 6 ms | 7380 KB | Output is correct |
36 | Correct | 5 ms | 7252 KB | Output is correct |
37 | Correct | 5 ms | 7360 KB | Output is correct |
38 | Correct | 5 ms | 7360 KB | Output is correct |
39 | Correct | 4 ms | 7252 KB | Output is correct |
40 | Correct | 4 ms | 7252 KB | Output is correct |
41 | Correct | 6 ms | 7416 KB | Output is correct |
42 | Correct | 4 ms | 7252 KB | Output is correct |
43 | Correct | 4 ms | 7252 KB | Output is correct |
44 | Correct | 4 ms | 7352 KB | Output is correct |
45 | Correct | 4 ms | 7252 KB | Output is correct |
46 | Correct | 4 ms | 7364 KB | Output is correct |
47 | Correct | 5 ms | 7360 KB | Output is correct |
48 | Correct | 5 ms | 7252 KB | Output is correct |
49 | Correct | 4 ms | 7252 KB | Output is correct |
50 | Correct | 4 ms | 7356 KB | Output is correct |
51 | Correct | 4 ms | 7252 KB | Output is correct |
52 | Correct | 4 ms | 7364 KB | Output is correct |
53 | Correct | 4 ms | 7360 KB | Output is correct |
54 | Correct | 4 ms | 7380 KB | Output is correct |
55 | Correct | 4 ms | 7364 KB | Output is correct |
56 | Correct | 4 ms | 7360 KB | Output is correct |
57 | Correct | 6 ms | 7364 KB | Output is correct |
58 | Correct | 5 ms | 7356 KB | Output is correct |
59 | Correct | 5 ms | 7252 KB | Output is correct |
60 | Correct | 6 ms | 7412 KB | Output is correct |
61 | Correct | 6 ms | 7368 KB | Output is correct |
62 | Correct | 5 ms | 7252 KB | Output is correct |
63 | Correct | 4 ms | 7252 KB | Output is correct |
64 | Correct | 4 ms | 7380 KB | Output is correct |
65 | Correct | 5 ms | 7364 KB | Output is correct |
66 | Correct | 4 ms | 7380 KB | Output is correct |
67 | Correct | 4 ms | 7380 KB | Output is correct |
68 | Correct | 4 ms | 7380 KB | Output is correct |
69 | Correct | 5 ms | 7376 KB | Output is correct |
70 | Correct | 5 ms | 7380 KB | Output is correct |
71 | Correct | 4 ms | 7380 KB | Output is correct |
72 | Correct | 5 ms | 7372 KB | Output is correct |
73 | Correct | 4 ms | 7380 KB | Output is correct |
74 | Correct | 5 ms | 7372 KB | Output is correct |
75 | Correct | 4 ms | 7380 KB | Output is correct |
76 | Correct | 4 ms | 7364 KB | Output is correct |
77 | Correct | 5 ms | 7380 KB | Output is correct |
78 | Correct | 5 ms | 7372 KB | Output is correct |
79 | Correct | 5 ms | 7380 KB | Output is correct |
80 | Correct | 5 ms | 7380 KB | Output is correct |
81 | Correct | 5 ms | 7372 KB | Output is correct |
82 | Correct | 5 ms | 7488 KB | Output is correct |
83 | Correct | 4 ms | 7508 KB | Output is correct |
84 | Correct | 4 ms | 7368 KB | Output is correct |
85 | Correct | 4 ms | 7380 KB | Output is correct |
86 | Correct | 4 ms | 7380 KB | Output is correct |
87 | Correct | 5 ms | 7380 KB | Output is correct |
88 | Correct | 5 ms | 7380 KB | Output is correct |
89 | Correct | 5 ms | 7372 KB | Output is correct |
90 | Correct | 5 ms | 7380 KB | Output is correct |
91 | Correct | 5 ms | 7380 KB | Output is correct |
92 | Correct | 5 ms | 7368 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 7252 KB | Output is correct |
2 | Correct | 4 ms | 7252 KB | Output is correct |
3 | Correct | 4 ms | 7360 KB | Output is correct |
4 | Correct | 5 ms | 7364 KB | Output is correct |
5 | Correct | 5 ms | 7252 KB | Output is correct |
6 | Correct | 4 ms | 7252 KB | Output is correct |
7 | Correct | 4 ms | 7364 KB | Output is correct |
8 | Correct | 4 ms | 7252 KB | Output is correct |
9 | Correct | 5 ms | 7364 KB | Output is correct |
10 | Correct | 5 ms | 7252 KB | Output is correct |
11 | Correct | 4 ms | 7364 KB | Output is correct |
12 | Correct | 4 ms | 7364 KB | Output is correct |
13 | Correct | 4 ms | 7252 KB | Output is correct |
14 | Correct | 4 ms | 7360 KB | Output is correct |
15 | Correct | 4 ms | 7352 KB | Output is correct |
16 | Correct | 4 ms | 7264 KB | Output is correct |
17 | Correct | 6 ms | 7252 KB | Output is correct |
18 | Correct | 4 ms | 7360 KB | Output is correct |
19 | Correct | 6 ms | 7252 KB | Output is correct |
20 | Correct | 5 ms | 7364 KB | Output is correct |
21 | Correct | 6 ms | 7364 KB | Output is correct |
22 | Correct | 4 ms | 7360 KB | Output is correct |
23 | Correct | 4 ms | 7252 KB | Output is correct |
24 | Correct | 4 ms | 7252 KB | Output is correct |
25 | Correct | 4 ms | 7360 KB | Output is correct |
26 | Correct | 4 ms | 7368 KB | Output is correct |
27 | Correct | 5 ms | 7436 KB | Output is correct |
28 | Correct | 4 ms | 7252 KB | Output is correct |
29 | Correct | 5 ms | 7252 KB | Output is correct |
30 | Correct | 6 ms | 7244 KB | Output is correct |
31 | Correct | 5 ms | 7368 KB | Output is correct |
32 | Correct | 4 ms | 7352 KB | Output is correct |
33 | Correct | 4 ms | 7356 KB | Output is correct |
34 | Correct | 4 ms | 7248 KB | Output is correct |
35 | Correct | 6 ms | 7380 KB | Output is correct |
36 | Correct | 5 ms | 7252 KB | Output is correct |
37 | Correct | 5 ms | 7360 KB | Output is correct |
38 | Correct | 5 ms | 7360 KB | Output is correct |
39 | Correct | 4 ms | 7252 KB | Output is correct |
40 | Correct | 4 ms | 7252 KB | Output is correct |
41 | Correct | 6 ms | 7416 KB | Output is correct |
42 | Correct | 4 ms | 7252 KB | Output is correct |
43 | Correct | 4 ms | 7252 KB | Output is correct |
44 | Correct | 4 ms | 7352 KB | Output is correct |
45 | Correct | 4 ms | 7252 KB | Output is correct |
46 | Correct | 4 ms | 7364 KB | Output is correct |
47 | Correct | 5 ms | 7360 KB | Output is correct |
48 | Correct | 5 ms | 7252 KB | Output is correct |
49 | Correct | 4 ms | 7252 KB | Output is correct |
50 | Correct | 4 ms | 7356 KB | Output is correct |
51 | Correct | 4 ms | 7252 KB | Output is correct |
52 | Correct | 4 ms | 7364 KB | Output is correct |
53 | Correct | 4 ms | 7360 KB | Output is correct |
54 | Correct | 4 ms | 7380 KB | Output is correct |
55 | Correct | 4 ms | 7364 KB | Output is correct |
56 | Correct | 4 ms | 7360 KB | Output is correct |
57 | Correct | 6 ms | 7364 KB | Output is correct |
58 | Correct | 5 ms | 7356 KB | Output is correct |
59 | Correct | 5 ms | 7252 KB | Output is correct |
60 | Correct | 6 ms | 7412 KB | Output is correct |
61 | Correct | 6 ms | 7368 KB | Output is correct |
62 | Correct | 5 ms | 7252 KB | Output is correct |
63 | Correct | 4 ms | 7252 KB | Output is correct |
64 | Correct | 4 ms | 7380 KB | Output is correct |
65 | Correct | 5 ms | 7364 KB | Output is correct |
66 | Correct | 79 ms | 23120 KB | Output is correct |
67 | Correct | 77 ms | 23204 KB | Output is correct |
68 | Correct | 84 ms | 23208 KB | Output is correct |
69 | Correct | 93 ms | 22656 KB | Output is correct |
70 | Correct | 86 ms | 19616 KB | Output is correct |
71 | Correct | 86 ms | 22044 KB | Output is correct |
72 | Correct | 86 ms | 20292 KB | Output is correct |
73 | Correct | 95 ms | 20808 KB | Output is correct |
74 | Correct | 92 ms | 18664 KB | Output is correct |
75 | Correct | 76 ms | 18608 KB | Output is correct |
76 | Correct | 68 ms | 15848 KB | Output is correct |
77 | Correct | 73 ms | 15692 KB | Output is correct |
78 | Correct | 82 ms | 15676 KB | Output is correct |
79 | Correct | 68 ms | 15416 KB | Output is correct |
80 | Correct | 43 ms | 14592 KB | Output is correct |
81 | Correct | 42 ms | 14392 KB | Output is correct |
82 | Correct | 7 ms | 9168 KB | Output is correct |
83 | Correct | 7 ms | 9152 KB | Output is correct |
84 | Correct | 8 ms | 9024 KB | Output is correct |
85 | Correct | 6 ms | 9040 KB | Output is correct |
86 | Correct | 6 ms | 9104 KB | Output is correct |
87 | Correct | 7 ms | 9040 KB | Output is correct |
88 | Correct | 5 ms | 7368 KB | Output is correct |
89 | Correct | 5 ms | 7372 KB | Output is correct |
90 | Correct | 7 ms | 7368 KB | Output is correct |
91 | Correct | 5 ms | 7508 KB | Output is correct |
92 | Correct | 5 ms | 7444 KB | Output is correct |
93 | Correct | 4 ms | 7520 KB | Output is correct |
94 | Correct | 5 ms | 7508 KB | Output is correct |
95 | Correct | 4 ms | 7500 KB | Output is correct |
96 | Correct | 5 ms | 7508 KB | Output is correct |
97 | Correct | 5 ms | 7380 KB | Output is correct |
98 | Correct | 5 ms | 7372 KB | Output is correct |
99 | Correct | 5 ms | 7368 KB | Output is correct |
100 | Correct | 5 ms | 7376 KB | Output is correct |
101 | Correct | 5 ms | 7380 KB | Output is correct |
102 | Correct | 6 ms | 7524 KB | Output is correct |
103 | Correct | 5 ms | 7380 KB | Output is correct |
104 | Correct | 5 ms | 7424 KB | Output is correct |
105 | Correct | 6 ms | 7420 KB | Output is correct |
106 | Correct | 5 ms | 7372 KB | Output is correct |
107 | Correct | 5 ms | 7380 KB | Output is correct |
108 | Correct | 86 ms | 18016 KB | Output is correct |
109 | Correct | 80 ms | 18112 KB | Output is correct |
110 | Correct | 76 ms | 18136 KB | Output is correct |
111 | Correct | 78 ms | 18068 KB | Output is correct |
112 | Correct | 73 ms | 18136 KB | Output is correct |
113 | Correct | 104 ms | 28204 KB | Output is correct |
114 | Correct | 85 ms | 24508 KB | Output is correct |
115 | Correct | 91 ms | 22924 KB | Output is correct |
116 | Correct | 97 ms | 21404 KB | Output is correct |
117 | Correct | 99 ms | 18120 KB | Output is correct |
118 | Correct | 93 ms | 18172 KB | Output is correct |
119 | Correct | 76 ms | 18104 KB | Output is correct |
120 | Correct | 91 ms | 18108 KB | Output is correct |
121 | Correct | 88 ms | 17700 KB | Output is correct |
122 | Correct | 67 ms | 17032 KB | Output is correct |
123 | Correct | 43 ms | 14600 KB | Output is correct |
124 | Correct | 46 ms | 17120 KB | Output is correct |
125 | Correct | 53 ms | 17092 KB | Output is correct |
126 | Correct | 51 ms | 17236 KB | Output is correct |
127 | Correct | 63 ms | 17212 KB | Output is correct |
128 | Correct | 5 ms | 7380 KB | Output is correct |
129 | Correct | 4 ms | 7380 KB | Output is correct |
130 | Correct | 5 ms | 7372 KB | Output is correct |
131 | Correct | 4 ms | 7404 KB | Output is correct |
132 | Correct | 4 ms | 7380 KB | Output is correct |
133 | Correct | 5 ms | 7380 KB | Output is correct |
134 | Correct | 5 ms | 7380 KB | Output is correct |
135 | Correct | 5 ms | 7380 KB | Output is correct |
136 | Correct | 5 ms | 7372 KB | Output is correct |
137 | Correct | 6 ms | 7376 KB | Output is correct |
138 | Correct | 6 ms | 7380 KB | Output is correct |
139 | Correct | 5 ms | 7508 KB | Output is correct |
140 | Correct | 4 ms | 7508 KB | Output is correct |
141 | Correct | 5 ms | 7508 KB | Output is correct |
142 | Correct | 4 ms | 7496 KB | Output is correct |
143 | Correct | 5 ms | 7368 KB | Output is correct |
144 | Correct | 5 ms | 7380 KB | Output is correct |
145 | Correct | 5 ms | 7380 KB | Output is correct |
146 | Correct | 5 ms | 7380 KB | Output is correct |
147 | Correct | 5 ms | 7380 KB | Output is correct |
148 | Correct | 5 ms | 7404 KB | Output is correct |
149 | Correct | 5 ms | 7380 KB | Output is correct |
150 | Correct | 5 ms | 7380 KB | Output is correct |
151 | Correct | 5 ms | 7380 KB | Output is correct |
152 | Correct | 4 ms | 7380 KB | Output is correct |
153 | Correct | 5 ms | 7364 KB | Output is correct |
154 | Correct | 4 ms | 7364 KB | Output is correct |
155 | Correct | 74 ms | 18048 KB | Output is correct |
156 | Correct | 83 ms | 18420 KB | Output is correct |
157 | Correct | 100 ms | 17804 KB | Output is correct |
158 | Correct | 95 ms | 16588 KB | Output is correct |
159 | Correct | 75 ms | 15276 KB | Output is correct |
160 | Correct | 77 ms | 14756 KB | Output is correct |
161 | Correct | 70 ms | 14488 KB | Output is correct |
162 | Correct | 82 ms | 14176 KB | Output is correct |
163 | Correct | 87 ms | 14008 KB | Output is correct |
164 | Correct | 61 ms | 13948 KB | Output is correct |
165 | Correct | 64 ms | 13736 KB | Output is correct |
166 | Correct | 54 ms | 13736 KB | Output is correct |
167 | Correct | 76 ms | 13904 KB | Output is correct |
168 | Correct | 67 ms | 16104 KB | Output is correct |
169 | Correct | 89 ms | 24292 KB | Output is correct |
170 | Correct | 102 ms | 22228 KB | Output is correct |
171 | Correct | 90 ms | 22564 KB | Output is correct |
172 | Correct | 108 ms | 20904 KB | Output is correct |
173 | Correct | 99 ms | 16632 KB | Output is correct |
174 | Correct | 96 ms | 16688 KB | Output is correct |
175 | Correct | 88 ms | 16600 KB | Output is correct |
176 | Correct | 86 ms | 16040 KB | Output is correct |
177 | Correct | 69 ms | 15408 KB | Output is correct |
178 | Correct | 73 ms | 17484 KB | Output is correct |
179 | Correct | 100 ms | 17576 KB | Output is correct |
180 | Correct | 101 ms | 16872 KB | Output is correct |
181 | Correct | 75 ms | 16836 KB | Output is correct |
182 | Correct | 4 ms | 7380 KB | Output is correct |
183 | Correct | 4 ms | 7380 KB | Output is correct |
184 | Correct | 4 ms | 7380 KB | Output is correct |
185 | Correct | 5 ms | 7376 KB | Output is correct |
186 | Correct | 5 ms | 7380 KB | Output is correct |
187 | Correct | 4 ms | 7380 KB | Output is correct |
188 | Correct | 5 ms | 7372 KB | Output is correct |
189 | Correct | 4 ms | 7380 KB | Output is correct |
190 | Correct | 5 ms | 7372 KB | Output is correct |
191 | Correct | 4 ms | 7380 KB | Output is correct |
192 | Correct | 4 ms | 7364 KB | Output is correct |
193 | Correct | 5 ms | 7380 KB | Output is correct |
194 | Correct | 5 ms | 7372 KB | Output is correct |
195 | Correct | 5 ms | 7380 KB | Output is correct |
196 | Correct | 5 ms | 7380 KB | Output is correct |
197 | Correct | 5 ms | 7372 KB | Output is correct |
198 | Correct | 5 ms | 7488 KB | Output is correct |
199 | Correct | 4 ms | 7508 KB | Output is correct |
200 | Correct | 4 ms | 7368 KB | Output is correct |
201 | Correct | 4 ms | 7380 KB | Output is correct |
202 | Correct | 4 ms | 7380 KB | Output is correct |
203 | Correct | 5 ms | 7380 KB | Output is correct |
204 | Correct | 5 ms | 7380 KB | Output is correct |
205 | Correct | 5 ms | 7372 KB | Output is correct |
206 | Correct | 5 ms | 7380 KB | Output is correct |
207 | Correct | 5 ms | 7380 KB | Output is correct |
208 | Correct | 5 ms | 7368 KB | Output is correct |
209 | Correct | 7 ms | 9028 KB | Output is correct |
210 | Correct | 50 ms | 14212 KB | Output is correct |
211 | Correct | 76 ms | 17532 KB | Output is correct |
212 | Correct | 97 ms | 19988 KB | Output is correct |
213 | Correct | 125 ms | 21632 KB | Output is correct |
214 | Correct | 63 ms | 15512 KB | Output is correct |
215 | Correct | 55 ms | 15176 KB | Output is correct |
216 | Correct | 84 ms | 16892 KB | Output is correct |
217 | Correct | 92 ms | 15560 KB | Output is correct |
218 | Correct | 67 ms | 14168 KB | Output is correct |
219 | Correct | 58 ms | 13732 KB | Output is correct |
220 | Correct | 69 ms | 13684 KB | Output is correct |
221 | Correct | 73 ms | 13644 KB | Output is correct |
222 | Correct | 85 ms | 14956 KB | Output is correct |
223 | Correct | 99 ms | 18448 KB | Output is correct |
224 | Correct | 86 ms | 17628 KB | Output is correct |
225 | Correct | 75 ms | 15220 KB | Output is correct |
226 | Correct | 88 ms | 15180 KB | Output is correct |
227 | Correct | 88 ms | 15224 KB | Output is correct |
228 | Correct | 91 ms | 14952 KB | Output is correct |
229 | Correct | 71 ms | 14800 KB | Output is correct |
230 | Correct | 87 ms | 15180 KB | Output is correct |
231 | Correct | 80 ms | 15312 KB | Output is correct |