# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
696409 | 2023-02-06T12:27:35 Z | Quan2003 | Duathlon (APIO18_duathlon) | C++17 | 129 ms | 42988 KB |
#include<bits/stdc++.h> #include<iostream> using namespace std; typedef long long ll; typedef long double ld; const int N = 5e5 + 5; int up[21][N + 1]; int dp[N + 1]; int a[N + 1]; int n,m,q; long long res; vector<int>adj[N + 1]; vector<int>tadj[N + 1]; int trs,dsz,psz; bool vis[N + 1]; int st[N + 1],low[N + 1]; int comsize = 0; void dfs(int u,int p){ a[u] = low[u] = ++dsz; st[++psz] = u; comsize++; for(int i = 0; i < tadj[u].size(); i++){ int v = tadj[u][i]; if(v == p) continue; if(!a[v]){ dfs(v,u); low[u] = min(low[u] , low[v]); if( low[v] >= a[u]){ int j = u; trs++; adj[u].push_back(trs); // adj[trs].push_back(u); while(j != v){ j = st[psz--]; adj[trs].push_back(j); // adj[j].push_back(trs); } } } else low[u] = min(a[v] , low[u]); } } void dfs_calc(int u){ dp[u] = (u <= n); for(int i = 0; i < adj[u].size(); i++){ int v = adj[u][i]; dfs_calc(v); dp[u] += dp[v]; if(u > n) res = res - (long long) adj[u].size() * (dp[v] - 1) * dp[v]; } if(u > n) res = res - (long long) adj[u].size() * (comsize - dp[u] - 1) * (comsize - dp[u]); } int main(){ scanf("%d%d",&n,&m); for(int i = 0; i < m; i++){ int u,v; scanf("%d%d",&u,&v); tadj[u].push_back(v); tadj[v].push_back(u); } trs = n; for(int i = 1; i <= n; i++){ if(!a[i]){ comsize = 0; dfs(i,0); res += (long long) comsize * (comsize - 1) * (comsize - 2); dfs_calc(i); } } cout<<res<<endl; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 23764 KB | Output is correct |
2 | Correct | 12 ms | 23744 KB | Output is correct |
3 | Correct | 12 ms | 23764 KB | Output is correct |
4 | Correct | 12 ms | 23764 KB | Output is correct |
5 | Correct | 11 ms | 23764 KB | Output is correct |
6 | Correct | 12 ms | 23764 KB | Output is correct |
7 | Correct | 12 ms | 23764 KB | Output is correct |
8 | Correct | 12 ms | 23764 KB | Output is correct |
9 | Correct | 12 ms | 23752 KB | Output is correct |
10 | Correct | 12 ms | 23764 KB | Output is correct |
11 | Correct | 12 ms | 23800 KB | Output is correct |
12 | Correct | 13 ms | 23740 KB | Output is correct |
13 | Correct | 13 ms | 23688 KB | Output is correct |
14 | Correct | 15 ms | 23780 KB | Output is correct |
15 | Correct | 13 ms | 23764 KB | Output is correct |
16 | Correct | 12 ms | 23764 KB | Output is correct |
17 | Correct | 13 ms | 23796 KB | Output is correct |
18 | Correct | 12 ms | 23728 KB | Output is correct |
19 | Correct | 12 ms | 23816 KB | Output is correct |
20 | Correct | 12 ms | 23712 KB | Output is correct |
21 | Correct | 12 ms | 23764 KB | Output is correct |
22 | Correct | 11 ms | 23780 KB | Output is correct |
23 | Correct | 12 ms | 23764 KB | Output is correct |
24 | Correct | 13 ms | 23688 KB | Output is correct |
25 | Correct | 12 ms | 23764 KB | Output is correct |
26 | Correct | 12 ms | 23764 KB | Output is correct |
27 | Correct | 12 ms | 23764 KB | Output is correct |
28 | Correct | 12 ms | 23772 KB | Output is correct |
29 | Correct | 12 ms | 23764 KB | Output is correct |
30 | Correct | 11 ms | 23764 KB | Output is correct |
31 | Correct | 12 ms | 23816 KB | Output is correct |
32 | Correct | 12 ms | 23764 KB | Output is correct |
33 | Correct | 12 ms | 23716 KB | Output is correct |
34 | Correct | 12 ms | 23764 KB | Output is correct |
35 | Correct | 12 ms | 23764 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 23764 KB | Output is correct |
2 | Correct | 12 ms | 23744 KB | Output is correct |
3 | Correct | 12 ms | 23764 KB | Output is correct |
4 | Correct | 12 ms | 23764 KB | Output is correct |
5 | Correct | 11 ms | 23764 KB | Output is correct |
6 | Correct | 12 ms | 23764 KB | Output is correct |
7 | Correct | 12 ms | 23764 KB | Output is correct |
8 | Correct | 12 ms | 23764 KB | Output is correct |
9 | Correct | 12 ms | 23752 KB | Output is correct |
10 | Correct | 12 ms | 23764 KB | Output is correct |
11 | Correct | 12 ms | 23800 KB | Output is correct |
12 | Correct | 13 ms | 23740 KB | Output is correct |
13 | Correct | 13 ms | 23688 KB | Output is correct |
14 | Correct | 15 ms | 23780 KB | Output is correct |
15 | Correct | 13 ms | 23764 KB | Output is correct |
16 | Correct | 12 ms | 23764 KB | Output is correct |
17 | Correct | 13 ms | 23796 KB | Output is correct |
18 | Correct | 12 ms | 23728 KB | Output is correct |
19 | Correct | 12 ms | 23816 KB | Output is correct |
20 | Correct | 12 ms | 23712 KB | Output is correct |
21 | Correct | 12 ms | 23764 KB | Output is correct |
22 | Correct | 11 ms | 23780 KB | Output is correct |
23 | Correct | 12 ms | 23764 KB | Output is correct |
24 | Correct | 13 ms | 23688 KB | Output is correct |
25 | Correct | 12 ms | 23764 KB | Output is correct |
26 | Correct | 12 ms | 23764 KB | Output is correct |
27 | Correct | 12 ms | 23764 KB | Output is correct |
28 | Correct | 12 ms | 23772 KB | Output is correct |
29 | Correct | 12 ms | 23764 KB | Output is correct |
30 | Correct | 11 ms | 23764 KB | Output is correct |
31 | Correct | 12 ms | 23816 KB | Output is correct |
32 | Correct | 12 ms | 23764 KB | Output is correct |
33 | Correct | 12 ms | 23716 KB | Output is correct |
34 | Correct | 12 ms | 23764 KB | Output is correct |
35 | Correct | 12 ms | 23764 KB | Output is correct |
36 | Correct | 13 ms | 23764 KB | Output is correct |
37 | Correct | 14 ms | 23764 KB | Output is correct |
38 | Correct | 12 ms | 23764 KB | Output is correct |
39 | Correct | 12 ms | 23764 KB | Output is correct |
40 | Correct | 12 ms | 23764 KB | Output is correct |
41 | Correct | 13 ms | 23764 KB | Output is correct |
42 | Correct | 12 ms | 23776 KB | Output is correct |
43 | Correct | 12 ms | 23748 KB | Output is correct |
44 | Correct | 13 ms | 23880 KB | Output is correct |
45 | Correct | 11 ms | 23764 KB | Output is correct |
46 | Correct | 12 ms | 23764 KB | Output is correct |
47 | Correct | 13 ms | 23764 KB | Output is correct |
48 | Correct | 13 ms | 23764 KB | Output is correct |
49 | Correct | 14 ms | 23764 KB | Output is correct |
50 | Correct | 12 ms | 23764 KB | Output is correct |
51 | Correct | 12 ms | 23764 KB | Output is correct |
52 | Correct | 11 ms | 23764 KB | Output is correct |
53 | Correct | 12 ms | 23764 KB | Output is correct |
54 | Correct | 14 ms | 23764 KB | Output is correct |
55 | Correct | 14 ms | 23764 KB | Output is correct |
56 | Correct | 12 ms | 23764 KB | Output is correct |
57 | Correct | 12 ms | 23764 KB | Output is correct |
58 | Correct | 11 ms | 23808 KB | Output is correct |
59 | Correct | 11 ms | 23764 KB | Output is correct |
60 | Correct | 13 ms | 23892 KB | Output is correct |
61 | Correct | 13 ms | 23892 KB | Output is correct |
62 | Correct | 12 ms | 23788 KB | Output is correct |
63 | Correct | 12 ms | 23772 KB | Output is correct |
64 | Correct | 12 ms | 23764 KB | Output is correct |
65 | Correct | 16 ms | 23764 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 68 ms | 39928 KB | Output is correct |
2 | Correct | 65 ms | 41124 KB | Output is correct |
3 | Correct | 78 ms | 38524 KB | Output is correct |
4 | Correct | 84 ms | 40064 KB | Output is correct |
5 | Correct | 72 ms | 35620 KB | Output is correct |
6 | Correct | 101 ms | 37576 KB | Output is correct |
7 | Correct | 98 ms | 36088 KB | Output is correct |
8 | Correct | 90 ms | 36728 KB | Output is correct |
9 | Correct | 82 ms | 34764 KB | Output is correct |
10 | Correct | 80 ms | 35028 KB | Output is correct |
11 | Correct | 66 ms | 32248 KB | Output is correct |
12 | Correct | 66 ms | 32112 KB | Output is correct |
13 | Correct | 73 ms | 32020 KB | Output is correct |
14 | Correct | 67 ms | 31860 KB | Output is correct |
15 | Correct | 49 ms | 30960 KB | Output is correct |
16 | Correct | 45 ms | 30752 KB | Output is correct |
17 | Correct | 14 ms | 25300 KB | Output is correct |
18 | Correct | 14 ms | 25300 KB | Output is correct |
19 | Correct | 14 ms | 25308 KB | Output is correct |
20 | Correct | 14 ms | 25300 KB | Output is correct |
21 | Correct | 14 ms | 25284 KB | Output is correct |
22 | Correct | 15 ms | 25300 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 15 ms | 23848 KB | Output is correct |
2 | Correct | 12 ms | 23820 KB | Output is correct |
3 | Correct | 14 ms | 23840 KB | Output is correct |
4 | Correct | 11 ms | 23892 KB | Output is correct |
5 | Correct | 12 ms | 23860 KB | Output is correct |
6 | Correct | 12 ms | 23892 KB | Output is correct |
7 | Correct | 12 ms | 23900 KB | Output is correct |
8 | Correct | 12 ms | 23852 KB | Output is correct |
9 | Correct | 12 ms | 23892 KB | Output is correct |
10 | Correct | 12 ms | 23892 KB | Output is correct |
11 | Correct | 12 ms | 23892 KB | Output is correct |
12 | Correct | 13 ms | 23892 KB | Output is correct |
13 | Correct | 13 ms | 23892 KB | Output is correct |
14 | Correct | 13 ms | 23824 KB | Output is correct |
15 | Correct | 15 ms | 23892 KB | Output is correct |
16 | Correct | 13 ms | 23764 KB | Output is correct |
17 | Correct | 12 ms | 23816 KB | Output is correct |
18 | Correct | 12 ms | 23892 KB | Output is correct |
19 | Correct | 12 ms | 23892 KB | Output is correct |
20 | Correct | 12 ms | 23892 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 76 ms | 33348 KB | Output is correct |
2 | Correct | 81 ms | 34528 KB | Output is correct |
3 | Correct | 84 ms | 34600 KB | Output is correct |
4 | Correct | 79 ms | 34512 KB | Output is correct |
5 | Correct | 89 ms | 34516 KB | Output is correct |
6 | Correct | 103 ms | 42988 KB | Output is correct |
7 | Correct | 90 ms | 39880 KB | Output is correct |
8 | Correct | 112 ms | 38556 KB | Output is correct |
9 | Correct | 98 ms | 37248 KB | Output is correct |
10 | Correct | 76 ms | 34492 KB | Output is correct |
11 | Correct | 78 ms | 34508 KB | Output is correct |
12 | Correct | 84 ms | 34596 KB | Output is correct |
13 | Correct | 82 ms | 34596 KB | Output is correct |
14 | Correct | 77 ms | 34068 KB | Output is correct |
15 | Correct | 66 ms | 33480 KB | Output is correct |
16 | Correct | 44 ms | 31080 KB | Output is correct |
17 | Correct | 56 ms | 33604 KB | Output is correct |
18 | Correct | 55 ms | 33612 KB | Output is correct |
19 | Correct | 55 ms | 33728 KB | Output is correct |
20 | Correct | 54 ms | 33644 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 12 ms | 23868 KB | Output is correct |
2 | Correct | 12 ms | 23892 KB | Output is correct |
3 | Correct | 12 ms | 23852 KB | Output is correct |
4 | Correct | 12 ms | 23840 KB | Output is correct |
5 | Correct | 12 ms | 23888 KB | Output is correct |
6 | Correct | 12 ms | 23764 KB | Output is correct |
7 | Correct | 12 ms | 23836 KB | Output is correct |
8 | Correct | 12 ms | 23772 KB | Output is correct |
9 | Correct | 14 ms | 23764 KB | Output is correct |
10 | Correct | 12 ms | 23784 KB | Output is correct |
11 | Correct | 12 ms | 23836 KB | Output is correct |
12 | Correct | 12 ms | 23900 KB | Output is correct |
13 | Correct | 12 ms | 23892 KB | Output is correct |
14 | Correct | 12 ms | 23892 KB | Output is correct |
15 | Correct | 12 ms | 23892 KB | Output is correct |
16 | Correct | 13 ms | 23764 KB | Output is correct |
17 | Correct | 14 ms | 23892 KB | Output is correct |
18 | Correct | 12 ms | 23764 KB | Output is correct |
19 | Correct | 15 ms | 23764 KB | Output is correct |
20 | Correct | 13 ms | 23812 KB | Output is correct |
21 | Correct | 12 ms | 23892 KB | Output is correct |
22 | Correct | 12 ms | 23836 KB | Output is correct |
23 | Correct | 12 ms | 23892 KB | Output is correct |
24 | Correct | 12 ms | 23892 KB | Output is correct |
25 | Correct | 12 ms | 23764 KB | Output is correct |
26 | Correct | 13 ms | 23764 KB | Output is correct |
27 | Correct | 12 ms | 23764 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 89 ms | 33264 KB | Output is correct |
2 | Correct | 90 ms | 34844 KB | Output is correct |
3 | Correct | 98 ms | 34220 KB | Output is correct |
4 | Correct | 96 ms | 33024 KB | Output is correct |
5 | Correct | 80 ms | 31852 KB | Output is correct |
6 | Correct | 73 ms | 31180 KB | Output is correct |
7 | Correct | 101 ms | 30896 KB | Output is correct |
8 | Correct | 72 ms | 30640 KB | Output is correct |
9 | Correct | 65 ms | 30412 KB | Output is correct |
10 | Correct | 61 ms | 30308 KB | Output is correct |
11 | Correct | 70 ms | 30148 KB | Output is correct |
12 | Correct | 61 ms | 30256 KB | Output is correct |
13 | Correct | 63 ms | 30360 KB | Output is correct |
14 | Correct | 65 ms | 32900 KB | Output is correct |
15 | Correct | 118 ms | 39460 KB | Output is correct |
16 | Correct | 103 ms | 37836 KB | Output is correct |
17 | Correct | 97 ms | 38240 KB | Output is correct |
18 | Correct | 86 ms | 36616 KB | Output is correct |
19 | Correct | 92 ms | 33056 KB | Output is correct |
20 | Correct | 91 ms | 33016 KB | Output is correct |
21 | Correct | 80 ms | 33016 KB | Output is correct |
22 | Correct | 81 ms | 32448 KB | Output is correct |
23 | Correct | 90 ms | 31836 KB | Output is correct |
24 | Correct | 71 ms | 33852 KB | Output is correct |
25 | Correct | 75 ms | 34036 KB | Output is correct |
26 | Correct | 79 ms | 33336 KB | Output is correct |
27 | Correct | 93 ms | 33296 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 23764 KB | Output is correct |
2 | Correct | 12 ms | 23744 KB | Output is correct |
3 | Correct | 12 ms | 23764 KB | Output is correct |
4 | Correct | 12 ms | 23764 KB | Output is correct |
5 | Correct | 11 ms | 23764 KB | Output is correct |
6 | Correct | 12 ms | 23764 KB | Output is correct |
7 | Correct | 12 ms | 23764 KB | Output is correct |
8 | Correct | 12 ms | 23764 KB | Output is correct |
9 | Correct | 12 ms | 23752 KB | Output is correct |
10 | Correct | 12 ms | 23764 KB | Output is correct |
11 | Correct | 12 ms | 23800 KB | Output is correct |
12 | Correct | 13 ms | 23740 KB | Output is correct |
13 | Correct | 13 ms | 23688 KB | Output is correct |
14 | Correct | 15 ms | 23780 KB | Output is correct |
15 | Correct | 13 ms | 23764 KB | Output is correct |
16 | Correct | 12 ms | 23764 KB | Output is correct |
17 | Correct | 13 ms | 23796 KB | Output is correct |
18 | Correct | 12 ms | 23728 KB | Output is correct |
19 | Correct | 12 ms | 23816 KB | Output is correct |
20 | Correct | 12 ms | 23712 KB | Output is correct |
21 | Correct | 12 ms | 23764 KB | Output is correct |
22 | Correct | 11 ms | 23780 KB | Output is correct |
23 | Correct | 12 ms | 23764 KB | Output is correct |
24 | Correct | 13 ms | 23688 KB | Output is correct |
25 | Correct | 12 ms | 23764 KB | Output is correct |
26 | Correct | 12 ms | 23764 KB | Output is correct |
27 | Correct | 12 ms | 23764 KB | Output is correct |
28 | Correct | 12 ms | 23772 KB | Output is correct |
29 | Correct | 12 ms | 23764 KB | Output is correct |
30 | Correct | 11 ms | 23764 KB | Output is correct |
31 | Correct | 12 ms | 23816 KB | Output is correct |
32 | Correct | 12 ms | 23764 KB | Output is correct |
33 | Correct | 12 ms | 23716 KB | Output is correct |
34 | Correct | 12 ms | 23764 KB | Output is correct |
35 | Correct | 12 ms | 23764 KB | Output is correct |
36 | Correct | 13 ms | 23764 KB | Output is correct |
37 | Correct | 14 ms | 23764 KB | Output is correct |
38 | Correct | 12 ms | 23764 KB | Output is correct |
39 | Correct | 12 ms | 23764 KB | Output is correct |
40 | Correct | 12 ms | 23764 KB | Output is correct |
41 | Correct | 13 ms | 23764 KB | Output is correct |
42 | Correct | 12 ms | 23776 KB | Output is correct |
43 | Correct | 12 ms | 23748 KB | Output is correct |
44 | Correct | 13 ms | 23880 KB | Output is correct |
45 | Correct | 11 ms | 23764 KB | Output is correct |
46 | Correct | 12 ms | 23764 KB | Output is correct |
47 | Correct | 13 ms | 23764 KB | Output is correct |
48 | Correct | 13 ms | 23764 KB | Output is correct |
49 | Correct | 14 ms | 23764 KB | Output is correct |
50 | Correct | 12 ms | 23764 KB | Output is correct |
51 | Correct | 12 ms | 23764 KB | Output is correct |
52 | Correct | 11 ms | 23764 KB | Output is correct |
53 | Correct | 12 ms | 23764 KB | Output is correct |
54 | Correct | 14 ms | 23764 KB | Output is correct |
55 | Correct | 14 ms | 23764 KB | Output is correct |
56 | Correct | 12 ms | 23764 KB | Output is correct |
57 | Correct | 12 ms | 23764 KB | Output is correct |
58 | Correct | 11 ms | 23808 KB | Output is correct |
59 | Correct | 11 ms | 23764 KB | Output is correct |
60 | Correct | 13 ms | 23892 KB | Output is correct |
61 | Correct | 13 ms | 23892 KB | Output is correct |
62 | Correct | 12 ms | 23788 KB | Output is correct |
63 | Correct | 12 ms | 23772 KB | Output is correct |
64 | Correct | 12 ms | 23764 KB | Output is correct |
65 | Correct | 16 ms | 23764 KB | Output is correct |
66 | Correct | 15 ms | 23764 KB | Output is correct |
67 | Correct | 13 ms | 23840 KB | Output is correct |
68 | Correct | 14 ms | 23892 KB | Output is correct |
69 | Correct | 12 ms | 23912 KB | Output is correct |
70 | Correct | 13 ms | 23884 KB | Output is correct |
71 | Correct | 13 ms | 23768 KB | Output is correct |
72 | Correct | 14 ms | 23764 KB | Output is correct |
73 | Correct | 13 ms | 23764 KB | Output is correct |
74 | Correct | 13 ms | 23832 KB | Output is correct |
75 | Correct | 13 ms | 23764 KB | Output is correct |
76 | Correct | 12 ms | 23696 KB | Output is correct |
77 | Correct | 12 ms | 23892 KB | Output is correct |
78 | Correct | 13 ms | 23852 KB | Output is correct |
79 | Correct | 12 ms | 23892 KB | Output is correct |
80 | Correct | 14 ms | 23764 KB | Output is correct |
81 | Correct | 14 ms | 23868 KB | Output is correct |
82 | Correct | 12 ms | 23892 KB | Output is correct |
83 | Correct | 13 ms | 24020 KB | Output is correct |
84 | Correct | 12 ms | 23892 KB | Output is correct |
85 | Correct | 12 ms | 23892 KB | Output is correct |
86 | Correct | 14 ms | 23764 KB | Output is correct |
87 | Correct | 12 ms | 23764 KB | Output is correct |
88 | Correct | 12 ms | 23764 KB | Output is correct |
89 | Correct | 12 ms | 23764 KB | Output is correct |
90 | Correct | 13 ms | 23760 KB | Output is correct |
91 | Correct | 13 ms | 23764 KB | Output is correct |
92 | Correct | 12 ms | 23764 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 23764 KB | Output is correct |
2 | Correct | 12 ms | 23744 KB | Output is correct |
3 | Correct | 12 ms | 23764 KB | Output is correct |
4 | Correct | 12 ms | 23764 KB | Output is correct |
5 | Correct | 11 ms | 23764 KB | Output is correct |
6 | Correct | 12 ms | 23764 KB | Output is correct |
7 | Correct | 12 ms | 23764 KB | Output is correct |
8 | Correct | 12 ms | 23764 KB | Output is correct |
9 | Correct | 12 ms | 23752 KB | Output is correct |
10 | Correct | 12 ms | 23764 KB | Output is correct |
11 | Correct | 12 ms | 23800 KB | Output is correct |
12 | Correct | 13 ms | 23740 KB | Output is correct |
13 | Correct | 13 ms | 23688 KB | Output is correct |
14 | Correct | 15 ms | 23780 KB | Output is correct |
15 | Correct | 13 ms | 23764 KB | Output is correct |
16 | Correct | 12 ms | 23764 KB | Output is correct |
17 | Correct | 13 ms | 23796 KB | Output is correct |
18 | Correct | 12 ms | 23728 KB | Output is correct |
19 | Correct | 12 ms | 23816 KB | Output is correct |
20 | Correct | 12 ms | 23712 KB | Output is correct |
21 | Correct | 12 ms | 23764 KB | Output is correct |
22 | Correct | 11 ms | 23780 KB | Output is correct |
23 | Correct | 12 ms | 23764 KB | Output is correct |
24 | Correct | 13 ms | 23688 KB | Output is correct |
25 | Correct | 12 ms | 23764 KB | Output is correct |
26 | Correct | 12 ms | 23764 KB | Output is correct |
27 | Correct | 12 ms | 23764 KB | Output is correct |
28 | Correct | 12 ms | 23772 KB | Output is correct |
29 | Correct | 12 ms | 23764 KB | Output is correct |
30 | Correct | 11 ms | 23764 KB | Output is correct |
31 | Correct | 12 ms | 23816 KB | Output is correct |
32 | Correct | 12 ms | 23764 KB | Output is correct |
33 | Correct | 12 ms | 23716 KB | Output is correct |
34 | Correct | 12 ms | 23764 KB | Output is correct |
35 | Correct | 12 ms | 23764 KB | Output is correct |
36 | Correct | 13 ms | 23764 KB | Output is correct |
37 | Correct | 14 ms | 23764 KB | Output is correct |
38 | Correct | 12 ms | 23764 KB | Output is correct |
39 | Correct | 12 ms | 23764 KB | Output is correct |
40 | Correct | 12 ms | 23764 KB | Output is correct |
41 | Correct | 13 ms | 23764 KB | Output is correct |
42 | Correct | 12 ms | 23776 KB | Output is correct |
43 | Correct | 12 ms | 23748 KB | Output is correct |
44 | Correct | 13 ms | 23880 KB | Output is correct |
45 | Correct | 11 ms | 23764 KB | Output is correct |
46 | Correct | 12 ms | 23764 KB | Output is correct |
47 | Correct | 13 ms | 23764 KB | Output is correct |
48 | Correct | 13 ms | 23764 KB | Output is correct |
49 | Correct | 14 ms | 23764 KB | Output is correct |
50 | Correct | 12 ms | 23764 KB | Output is correct |
51 | Correct | 12 ms | 23764 KB | Output is correct |
52 | Correct | 11 ms | 23764 KB | Output is correct |
53 | Correct | 12 ms | 23764 KB | Output is correct |
54 | Correct | 14 ms | 23764 KB | Output is correct |
55 | Correct | 14 ms | 23764 KB | Output is correct |
56 | Correct | 12 ms | 23764 KB | Output is correct |
57 | Correct | 12 ms | 23764 KB | Output is correct |
58 | Correct | 11 ms | 23808 KB | Output is correct |
59 | Correct | 11 ms | 23764 KB | Output is correct |
60 | Correct | 13 ms | 23892 KB | Output is correct |
61 | Correct | 13 ms | 23892 KB | Output is correct |
62 | Correct | 12 ms | 23788 KB | Output is correct |
63 | Correct | 12 ms | 23772 KB | Output is correct |
64 | Correct | 12 ms | 23764 KB | Output is correct |
65 | Correct | 16 ms | 23764 KB | Output is correct |
66 | Correct | 68 ms | 39928 KB | Output is correct |
67 | Correct | 65 ms | 41124 KB | Output is correct |
68 | Correct | 78 ms | 38524 KB | Output is correct |
69 | Correct | 84 ms | 40064 KB | Output is correct |
70 | Correct | 72 ms | 35620 KB | Output is correct |
71 | Correct | 101 ms | 37576 KB | Output is correct |
72 | Correct | 98 ms | 36088 KB | Output is correct |
73 | Correct | 90 ms | 36728 KB | Output is correct |
74 | Correct | 82 ms | 34764 KB | Output is correct |
75 | Correct | 80 ms | 35028 KB | Output is correct |
76 | Correct | 66 ms | 32248 KB | Output is correct |
77 | Correct | 66 ms | 32112 KB | Output is correct |
78 | Correct | 73 ms | 32020 KB | Output is correct |
79 | Correct | 67 ms | 31860 KB | Output is correct |
80 | Correct | 49 ms | 30960 KB | Output is correct |
81 | Correct | 45 ms | 30752 KB | Output is correct |
82 | Correct | 14 ms | 25300 KB | Output is correct |
83 | Correct | 14 ms | 25300 KB | Output is correct |
84 | Correct | 14 ms | 25308 KB | Output is correct |
85 | Correct | 14 ms | 25300 KB | Output is correct |
86 | Correct | 14 ms | 25284 KB | Output is correct |
87 | Correct | 15 ms | 25300 KB | Output is correct |
88 | Correct | 15 ms | 23848 KB | Output is correct |
89 | Correct | 12 ms | 23820 KB | Output is correct |
90 | Correct | 14 ms | 23840 KB | Output is correct |
91 | Correct | 11 ms | 23892 KB | Output is correct |
92 | Correct | 12 ms | 23860 KB | Output is correct |
93 | Correct | 12 ms | 23892 KB | Output is correct |
94 | Correct | 12 ms | 23900 KB | Output is correct |
95 | Correct | 12 ms | 23852 KB | Output is correct |
96 | Correct | 12 ms | 23892 KB | Output is correct |
97 | Correct | 12 ms | 23892 KB | Output is correct |
98 | Correct | 12 ms | 23892 KB | Output is correct |
99 | Correct | 13 ms | 23892 KB | Output is correct |
100 | Correct | 13 ms | 23892 KB | Output is correct |
101 | Correct | 13 ms | 23824 KB | Output is correct |
102 | Correct | 15 ms | 23892 KB | Output is correct |
103 | Correct | 13 ms | 23764 KB | Output is correct |
104 | Correct | 12 ms | 23816 KB | Output is correct |
105 | Correct | 12 ms | 23892 KB | Output is correct |
106 | Correct | 12 ms | 23892 KB | Output is correct |
107 | Correct | 12 ms | 23892 KB | Output is correct |
108 | Correct | 76 ms | 33348 KB | Output is correct |
109 | Correct | 81 ms | 34528 KB | Output is correct |
110 | Correct | 84 ms | 34600 KB | Output is correct |
111 | Correct | 79 ms | 34512 KB | Output is correct |
112 | Correct | 89 ms | 34516 KB | Output is correct |
113 | Correct | 103 ms | 42988 KB | Output is correct |
114 | Correct | 90 ms | 39880 KB | Output is correct |
115 | Correct | 112 ms | 38556 KB | Output is correct |
116 | Correct | 98 ms | 37248 KB | Output is correct |
117 | Correct | 76 ms | 34492 KB | Output is correct |
118 | Correct | 78 ms | 34508 KB | Output is correct |
119 | Correct | 84 ms | 34596 KB | Output is correct |
120 | Correct | 82 ms | 34596 KB | Output is correct |
121 | Correct | 77 ms | 34068 KB | Output is correct |
122 | Correct | 66 ms | 33480 KB | Output is correct |
123 | Correct | 44 ms | 31080 KB | Output is correct |
124 | Correct | 56 ms | 33604 KB | Output is correct |
125 | Correct | 55 ms | 33612 KB | Output is correct |
126 | Correct | 55 ms | 33728 KB | Output is correct |
127 | Correct | 54 ms | 33644 KB | Output is correct |
128 | Correct | 12 ms | 23868 KB | Output is correct |
129 | Correct | 12 ms | 23892 KB | Output is correct |
130 | Correct | 12 ms | 23852 KB | Output is correct |
131 | Correct | 12 ms | 23840 KB | Output is correct |
132 | Correct | 12 ms | 23888 KB | Output is correct |
133 | Correct | 12 ms | 23764 KB | Output is correct |
134 | Correct | 12 ms | 23836 KB | Output is correct |
135 | Correct | 12 ms | 23772 KB | Output is correct |
136 | Correct | 14 ms | 23764 KB | Output is correct |
137 | Correct | 12 ms | 23784 KB | Output is correct |
138 | Correct | 12 ms | 23836 KB | Output is correct |
139 | Correct | 12 ms | 23900 KB | Output is correct |
140 | Correct | 12 ms | 23892 KB | Output is correct |
141 | Correct | 12 ms | 23892 KB | Output is correct |
142 | Correct | 12 ms | 23892 KB | Output is correct |
143 | Correct | 13 ms | 23764 KB | Output is correct |
144 | Correct | 14 ms | 23892 KB | Output is correct |
145 | Correct | 12 ms | 23764 KB | Output is correct |
146 | Correct | 15 ms | 23764 KB | Output is correct |
147 | Correct | 13 ms | 23812 KB | Output is correct |
148 | Correct | 12 ms | 23892 KB | Output is correct |
149 | Correct | 12 ms | 23836 KB | Output is correct |
150 | Correct | 12 ms | 23892 KB | Output is correct |
151 | Correct | 12 ms | 23892 KB | Output is correct |
152 | Correct | 12 ms | 23764 KB | Output is correct |
153 | Correct | 13 ms | 23764 KB | Output is correct |
154 | Correct | 12 ms | 23764 KB | Output is correct |
155 | Correct | 89 ms | 33264 KB | Output is correct |
156 | Correct | 90 ms | 34844 KB | Output is correct |
157 | Correct | 98 ms | 34220 KB | Output is correct |
158 | Correct | 96 ms | 33024 KB | Output is correct |
159 | Correct | 80 ms | 31852 KB | Output is correct |
160 | Correct | 73 ms | 31180 KB | Output is correct |
161 | Correct | 101 ms | 30896 KB | Output is correct |
162 | Correct | 72 ms | 30640 KB | Output is correct |
163 | Correct | 65 ms | 30412 KB | Output is correct |
164 | Correct | 61 ms | 30308 KB | Output is correct |
165 | Correct | 70 ms | 30148 KB | Output is correct |
166 | Correct | 61 ms | 30256 KB | Output is correct |
167 | Correct | 63 ms | 30360 KB | Output is correct |
168 | Correct | 65 ms | 32900 KB | Output is correct |
169 | Correct | 118 ms | 39460 KB | Output is correct |
170 | Correct | 103 ms | 37836 KB | Output is correct |
171 | Correct | 97 ms | 38240 KB | Output is correct |
172 | Correct | 86 ms | 36616 KB | Output is correct |
173 | Correct | 92 ms | 33056 KB | Output is correct |
174 | Correct | 91 ms | 33016 KB | Output is correct |
175 | Correct | 80 ms | 33016 KB | Output is correct |
176 | Correct | 81 ms | 32448 KB | Output is correct |
177 | Correct | 90 ms | 31836 KB | Output is correct |
178 | Correct | 71 ms | 33852 KB | Output is correct |
179 | Correct | 75 ms | 34036 KB | Output is correct |
180 | Correct | 79 ms | 33336 KB | Output is correct |
181 | Correct | 93 ms | 33296 KB | Output is correct |
182 | Correct | 15 ms | 23764 KB | Output is correct |
183 | Correct | 13 ms | 23840 KB | Output is correct |
184 | Correct | 14 ms | 23892 KB | Output is correct |
185 | Correct | 12 ms | 23912 KB | Output is correct |
186 | Correct | 13 ms | 23884 KB | Output is correct |
187 | Correct | 13 ms | 23768 KB | Output is correct |
188 | Correct | 14 ms | 23764 KB | Output is correct |
189 | Correct | 13 ms | 23764 KB | Output is correct |
190 | Correct | 13 ms | 23832 KB | Output is correct |
191 | Correct | 13 ms | 23764 KB | Output is correct |
192 | Correct | 12 ms | 23696 KB | Output is correct |
193 | Correct | 12 ms | 23892 KB | Output is correct |
194 | Correct | 13 ms | 23852 KB | Output is correct |
195 | Correct | 12 ms | 23892 KB | Output is correct |
196 | Correct | 14 ms | 23764 KB | Output is correct |
197 | Correct | 14 ms | 23868 KB | Output is correct |
198 | Correct | 12 ms | 23892 KB | Output is correct |
199 | Correct | 13 ms | 24020 KB | Output is correct |
200 | Correct | 12 ms | 23892 KB | Output is correct |
201 | Correct | 12 ms | 23892 KB | Output is correct |
202 | Correct | 14 ms | 23764 KB | Output is correct |
203 | Correct | 12 ms | 23764 KB | Output is correct |
204 | Correct | 12 ms | 23764 KB | Output is correct |
205 | Correct | 12 ms | 23764 KB | Output is correct |
206 | Correct | 13 ms | 23760 KB | Output is correct |
207 | Correct | 13 ms | 23764 KB | Output is correct |
208 | Correct | 12 ms | 23764 KB | Output is correct |
209 | Correct | 13 ms | 25300 KB | Output is correct |
210 | Correct | 48 ms | 30584 KB | Output is correct |
211 | Correct | 82 ms | 34496 KB | Output is correct |
212 | Correct | 95 ms | 37076 KB | Output is correct |
213 | Correct | 129 ms | 39088 KB | Output is correct |
214 | Correct | 53 ms | 31920 KB | Output is correct |
215 | Correct | 60 ms | 31576 KB | Output is correct |
216 | Correct | 89 ms | 33360 KB | Output is correct |
217 | Correct | 78 ms | 31984 KB | Output is correct |
218 | Correct | 83 ms | 30552 KB | Output is correct |
219 | Correct | 80 ms | 30296 KB | Output is correct |
220 | Correct | 63 ms | 30132 KB | Output is correct |
221 | Correct | 60 ms | 30088 KB | Output is correct |
222 | Correct | 69 ms | 31564 KB | Output is correct |
223 | Correct | 88 ms | 35256 KB | Output is correct |
224 | Correct | 108 ms | 34236 KB | Output is correct |
225 | Correct | 96 ms | 31692 KB | Output is correct |
226 | Correct | 92 ms | 31744 KB | Output is correct |
227 | Correct | 80 ms | 31752 KB | Output is correct |
228 | Correct | 73 ms | 31432 KB | Output is correct |
229 | Correct | 68 ms | 31184 KB | Output is correct |
230 | Correct | 75 ms | 31644 KB | Output is correct |
231 | Correct | 82 ms | 31784 KB | Output is correct |