답안 #555971

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
555971 2022-05-02T01:58:22 Z SirCovidThe19th 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
178 ms 28756 KB
#include <bits/stdc++.h>
using namespace std; 

const int mx = 1e5 + 5;

int n, m, ti, bccID, tin[mx], low[mx]; long long ans, curN, sz[mx*2];
vector<int> adj[mx], bct[mx*2]; stack<int> stk;

void AP(int cur, int p = 0){
    tin[cur] = ++ti; low[cur] = 1e9; stk.push(cur); curN++;
    int c = 0;
    for (int nxt : adj[cur]) if (nxt != p){
        if (tin[nxt]) low[cur] = min(low[cur], tin[nxt]);
        else{
            AP(nxt, cur); c++;
            low[cur] = min(low[cur], low[nxt]);
            if (low[nxt] >= tin[cur]){
                bccID++; bct[cur].push_back(bccID + n);
                while (1){
                    int tp = stk.top(); stk.pop(); 
                    bct[bccID + n].push_back(tp); 
                    if (tp == nxt) break;
                }
            }
        }
    }
}
void dfs(int cur){
    sz[cur] = (cur <= n);
    for (int nxt : bct[cur]){
        dfs(nxt); sz[cur] += sz[nxt]; 
        if (cur > n) ans -= bct[cur].size() * sz[nxt] * (sz[nxt] - 1);
    }
    if (cur > n) ans -= bct[cur].size() * (curN - sz[cur]) * (curN - sz[cur] - 1);
}

int main(){
    cin >> n >> m;
    for (int i = 1; i <= m; i++){
        int a, b; cin >> a >> b;
        adj[a].push_back(b); adj[b].push_back(a);
    }
    for (int i = 1; i <= n; i++) if (!tin[i]){
        curN = 0; AP(i);
        ans += curN * (curN - 1) * (curN - 2);
        dfs(i);
    }
    cout<<ans<<"\n";
}
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 5 ms 7252 KB Output is correct
8 Correct 4 ms 7252 KB Output is correct
9 Correct 4 ms 7252 KB Output is correct
10 Correct 4 ms 7252 KB Output is correct
11 Correct 4 ms 7252 KB Output is correct
12 Correct 4 ms 7252 KB Output is correct
13 Correct 4 ms 7252 KB Output is correct
14 Correct 4 ms 7252 KB Output is correct
15 Correct 3 ms 7360 KB Output is correct
16 Correct 4 ms 7252 KB Output is correct
17 Correct 4 ms 7252 KB Output is correct
18 Correct 4 ms 7252 KB Output is correct
19 Correct 3 ms 7252 KB Output is correct
20 Correct 4 ms 7252 KB Output is correct
21 Correct 4 ms 7252 KB Output is correct
22 Correct 4 ms 7252 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 7252 KB Output is correct
26 Correct 4 ms 7252 KB Output is correct
27 Correct 4 ms 7252 KB Output is correct
28 Correct 4 ms 7252 KB Output is correct
29 Correct 4 ms 7252 KB Output is correct
30 Correct 4 ms 7252 KB Output is correct
31 Correct 4 ms 7252 KB Output is correct
32 Correct 4 ms 7252 KB Output is correct
33 Correct 4 ms 7248 KB Output is correct
34 Correct 4 ms 7252 KB Output is correct
35 Correct 4 ms 7252 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 5 ms 7252 KB Output is correct
8 Correct 4 ms 7252 KB Output is correct
9 Correct 4 ms 7252 KB Output is correct
10 Correct 4 ms 7252 KB Output is correct
11 Correct 4 ms 7252 KB Output is correct
12 Correct 4 ms 7252 KB Output is correct
13 Correct 4 ms 7252 KB Output is correct
14 Correct 4 ms 7252 KB Output is correct
15 Correct 3 ms 7360 KB Output is correct
16 Correct 4 ms 7252 KB Output is correct
17 Correct 4 ms 7252 KB Output is correct
18 Correct 4 ms 7252 KB Output is correct
19 Correct 3 ms 7252 KB Output is correct
20 Correct 4 ms 7252 KB Output is correct
21 Correct 4 ms 7252 KB Output is correct
22 Correct 4 ms 7252 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 7252 KB Output is correct
26 Correct 4 ms 7252 KB Output is correct
27 Correct 4 ms 7252 KB Output is correct
28 Correct 4 ms 7252 KB Output is correct
29 Correct 4 ms 7252 KB Output is correct
30 Correct 4 ms 7252 KB Output is correct
31 Correct 4 ms 7252 KB Output is correct
32 Correct 4 ms 7252 KB Output is correct
33 Correct 4 ms 7248 KB Output is correct
34 Correct 4 ms 7252 KB Output is correct
35 Correct 4 ms 7252 KB Output is correct
36 Correct 4 ms 7252 KB Output is correct
37 Correct 4 ms 7252 KB Output is correct
38 Correct 4 ms 7252 KB Output is correct
39 Correct 4 ms 7252 KB Output is correct
40 Correct 4 ms 7252 KB Output is correct
41 Correct 4 ms 7252 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 7368 KB Output is correct
45 Correct 4 ms 7252 KB Output is correct
46 Correct 4 ms 7252 KB Output is correct
47 Correct 5 ms 7252 KB Output is correct
48 Correct 4 ms 7252 KB Output is correct
49 Correct 4 ms 7360 KB Output is correct
50 Correct 5 ms 7256 KB Output is correct
51 Correct 4 ms 7252 KB Output is correct
52 Correct 3 ms 7252 KB Output is correct
53 Correct 4 ms 7252 KB Output is correct
54 Correct 4 ms 7252 KB Output is correct
55 Correct 6 ms 7252 KB Output is correct
56 Correct 4 ms 7252 KB Output is correct
57 Correct 4 ms 7368 KB Output is correct
58 Correct 4 ms 7348 KB Output is correct
59 Correct 5 ms 7252 KB Output is correct
60 Correct 6 ms 7252 KB Output is correct
61 Correct 4 ms 7352 KB Output is correct
62 Correct 4 ms 7252 KB Output is correct
63 Correct 4 ms 7252 KB Output is correct
64 Correct 4 ms 7328 KB Output is correct
65 Correct 5 ms 7276 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 23860 KB Output is correct
2 Correct 99 ms 23924 KB Output is correct
3 Correct 138 ms 22192 KB Output is correct
4 Correct 140 ms 24152 KB Output is correct
5 Correct 107 ms 20040 KB Output is correct
6 Correct 125 ms 22576 KB Output is correct
7 Correct 153 ms 20876 KB Output is correct
8 Correct 114 ms 21304 KB Output is correct
9 Correct 112 ms 19288 KB Output is correct
10 Correct 120 ms 19188 KB Output is correct
11 Correct 112 ms 16460 KB Output is correct
12 Correct 108 ms 16328 KB Output is correct
13 Correct 79 ms 16160 KB Output is correct
14 Correct 82 ms 15976 KB Output is correct
15 Correct 80 ms 15036 KB Output is correct
16 Correct 78 ms 14912 KB Output is correct
17 Correct 7 ms 9300 KB Output is correct
18 Correct 7 ms 9300 KB Output is correct
19 Correct 9 ms 9272 KB Output is correct
20 Correct 7 ms 9300 KB Output is correct
21 Correct 6 ms 9300 KB Output is correct
22 Correct 6 ms 9300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7364 KB Output is correct
2 Correct 5 ms 7440 KB Output is correct
3 Correct 4 ms 7448 KB Output is correct
4 Correct 5 ms 7508 KB Output is correct
5 Correct 5 ms 7504 KB Output is correct
6 Correct 4 ms 7508 KB Output is correct
7 Correct 5 ms 7636 KB Output is correct
8 Correct 6 ms 7508 KB Output is correct
9 Correct 5 ms 7380 KB Output is correct
10 Correct 5 ms 7380 KB Output is correct
11 Correct 5 ms 7380 KB Output is correct
12 Correct 5 ms 7380 KB Output is correct
13 Correct 6 ms 7380 KB Output is correct
14 Correct 5 ms 7380 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 4 ms 7380 KB Output is correct
17 Correct 4 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 4 ms 7380 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 125 ms 17612 KB Output is correct
2 Correct 148 ms 18824 KB Output is correct
3 Correct 135 ms 18928 KB Output is correct
4 Correct 113 ms 18812 KB Output is correct
5 Correct 130 ms 18996 KB Output is correct
6 Correct 146 ms 28756 KB Output is correct
7 Correct 156 ms 25156 KB Output is correct
8 Correct 133 ms 23664 KB Output is correct
9 Correct 141 ms 22032 KB Output is correct
10 Correct 166 ms 18876 KB Output is correct
11 Correct 126 ms 18864 KB Output is correct
12 Correct 115 ms 18924 KB Output is correct
13 Correct 116 ms 18920 KB Output is correct
14 Correct 115 ms 18380 KB Output is correct
15 Correct 113 ms 17684 KB Output is correct
16 Correct 80 ms 15196 KB Output is correct
17 Correct 80 ms 17928 KB Output is correct
18 Correct 89 ms 17972 KB Output is correct
19 Correct 92 ms 18096 KB Output is correct
20 Correct 83 ms 17944 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7380 KB Output is correct
2 Correct 4 ms 7380 KB Output is correct
3 Correct 4 ms 7380 KB Output is correct
4 Correct 5 ms 7380 KB Output is correct
5 Correct 4 ms 7380 KB Output is correct
6 Correct 4 ms 7380 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 6 ms 7380 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 5 ms 7380 KB Output is correct
11 Correct 5 ms 7380 KB Output is correct
12 Correct 4 ms 7508 KB Output is correct
13 Correct 6 ms 7380 KB Output is correct
14 Correct 5 ms 7508 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 5 ms 7380 KB Output is correct
17 Correct 5 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 5 ms 7368 KB Output is correct
21 Correct 5 ms 7380 KB Output is correct
22 Correct 5 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 4 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 130 ms 17544 KB Output is correct
2 Correct 134 ms 19076 KB Output is correct
3 Correct 142 ms 18456 KB Output is correct
4 Correct 124 ms 17280 KB Output is correct
5 Correct 113 ms 15924 KB Output is correct
6 Correct 106 ms 15236 KB Output is correct
7 Correct 115 ms 14920 KB Output is correct
8 Correct 141 ms 14612 KB Output is correct
9 Correct 109 ms 14448 KB Output is correct
10 Correct 97 ms 14376 KB Output is correct
11 Correct 91 ms 14176 KB Output is correct
12 Correct 98 ms 14296 KB Output is correct
13 Correct 112 ms 14180 KB Output is correct
14 Correct 113 ms 16876 KB Output is correct
15 Correct 155 ms 25060 KB Output is correct
16 Correct 153 ms 22660 KB Output is correct
17 Correct 137 ms 23216 KB Output is correct
18 Correct 132 ms 21336 KB Output is correct
19 Correct 147 ms 17292 KB Output is correct
20 Correct 137 ms 17208 KB Output is correct
21 Correct 140 ms 17296 KB Output is correct
22 Correct 108 ms 16588 KB Output is correct
23 Correct 104 ms 15980 KB Output is correct
24 Correct 146 ms 18096 KB Output is correct
25 Correct 124 ms 18264 KB Output is correct
26 Correct 112 ms 17500 KB Output is correct
27 Correct 119 ms 17604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 5 ms 7252 KB Output is correct
8 Correct 4 ms 7252 KB Output is correct
9 Correct 4 ms 7252 KB Output is correct
10 Correct 4 ms 7252 KB Output is correct
11 Correct 4 ms 7252 KB Output is correct
12 Correct 4 ms 7252 KB Output is correct
13 Correct 4 ms 7252 KB Output is correct
14 Correct 4 ms 7252 KB Output is correct
15 Correct 3 ms 7360 KB Output is correct
16 Correct 4 ms 7252 KB Output is correct
17 Correct 4 ms 7252 KB Output is correct
18 Correct 4 ms 7252 KB Output is correct
19 Correct 3 ms 7252 KB Output is correct
20 Correct 4 ms 7252 KB Output is correct
21 Correct 4 ms 7252 KB Output is correct
22 Correct 4 ms 7252 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 7252 KB Output is correct
26 Correct 4 ms 7252 KB Output is correct
27 Correct 4 ms 7252 KB Output is correct
28 Correct 4 ms 7252 KB Output is correct
29 Correct 4 ms 7252 KB Output is correct
30 Correct 4 ms 7252 KB Output is correct
31 Correct 4 ms 7252 KB Output is correct
32 Correct 4 ms 7252 KB Output is correct
33 Correct 4 ms 7248 KB Output is correct
34 Correct 4 ms 7252 KB Output is correct
35 Correct 4 ms 7252 KB Output is correct
36 Correct 4 ms 7252 KB Output is correct
37 Correct 4 ms 7252 KB Output is correct
38 Correct 4 ms 7252 KB Output is correct
39 Correct 4 ms 7252 KB Output is correct
40 Correct 4 ms 7252 KB Output is correct
41 Correct 4 ms 7252 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 7368 KB Output is correct
45 Correct 4 ms 7252 KB Output is correct
46 Correct 4 ms 7252 KB Output is correct
47 Correct 5 ms 7252 KB Output is correct
48 Correct 4 ms 7252 KB Output is correct
49 Correct 4 ms 7360 KB Output is correct
50 Correct 5 ms 7256 KB Output is correct
51 Correct 4 ms 7252 KB Output is correct
52 Correct 3 ms 7252 KB Output is correct
53 Correct 4 ms 7252 KB Output is correct
54 Correct 4 ms 7252 KB Output is correct
55 Correct 6 ms 7252 KB Output is correct
56 Correct 4 ms 7252 KB Output is correct
57 Correct 4 ms 7368 KB Output is correct
58 Correct 4 ms 7348 KB Output is correct
59 Correct 5 ms 7252 KB Output is correct
60 Correct 6 ms 7252 KB Output is correct
61 Correct 4 ms 7352 KB Output is correct
62 Correct 4 ms 7252 KB Output is correct
63 Correct 4 ms 7252 KB Output is correct
64 Correct 4 ms 7328 KB Output is correct
65 Correct 5 ms 7276 KB Output is correct
66 Correct 3 ms 7380 KB Output is correct
67 Correct 5 ms 7380 KB Output is correct
68 Correct 5 ms 7380 KB Output is correct
69 Correct 4 ms 7380 KB Output is correct
70 Correct 5 ms 7380 KB Output is correct
71 Correct 4 ms 7380 KB Output is correct
72 Correct 6 ms 7376 KB Output is correct
73 Correct 4 ms 7380 KB Output is correct
74 Correct 4 ms 7380 KB Output is correct
75 Correct 5 ms 7380 KB Output is correct
76 Correct 4 ms 7252 KB Output is correct
77 Correct 5 ms 7380 KB Output is correct
78 Correct 5 ms 7380 KB Output is correct
79 Correct 5 ms 7380 KB Output is correct
80 Correct 5 ms 7380 KB Output is correct
81 Correct 4 ms 7380 KB Output is correct
82 Correct 4 ms 7380 KB Output is correct
83 Correct 5 ms 7380 KB Output is correct
84 Correct 5 ms 7380 KB Output is correct
85 Correct 6 ms 7380 KB Output is correct
86 Correct 5 ms 7380 KB Output is correct
87 Correct 4 ms 7380 KB Output is correct
88 Correct 5 ms 7380 KB Output is correct
89 Correct 4 ms 7380 KB Output is correct
90 Correct 4 ms 7380 KB Output is correct
91 Correct 4 ms 7348 KB Output is correct
92 Correct 4 ms 7372 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 5 ms 7252 KB Output is correct
8 Correct 4 ms 7252 KB Output is correct
9 Correct 4 ms 7252 KB Output is correct
10 Correct 4 ms 7252 KB Output is correct
11 Correct 4 ms 7252 KB Output is correct
12 Correct 4 ms 7252 KB Output is correct
13 Correct 4 ms 7252 KB Output is correct
14 Correct 4 ms 7252 KB Output is correct
15 Correct 3 ms 7360 KB Output is correct
16 Correct 4 ms 7252 KB Output is correct
17 Correct 4 ms 7252 KB Output is correct
18 Correct 4 ms 7252 KB Output is correct
19 Correct 3 ms 7252 KB Output is correct
20 Correct 4 ms 7252 KB Output is correct
21 Correct 4 ms 7252 KB Output is correct
22 Correct 4 ms 7252 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 7252 KB Output is correct
26 Correct 4 ms 7252 KB Output is correct
27 Correct 4 ms 7252 KB Output is correct
28 Correct 4 ms 7252 KB Output is correct
29 Correct 4 ms 7252 KB Output is correct
30 Correct 4 ms 7252 KB Output is correct
31 Correct 4 ms 7252 KB Output is correct
32 Correct 4 ms 7252 KB Output is correct
33 Correct 4 ms 7248 KB Output is correct
34 Correct 4 ms 7252 KB Output is correct
35 Correct 4 ms 7252 KB Output is correct
36 Correct 4 ms 7252 KB Output is correct
37 Correct 4 ms 7252 KB Output is correct
38 Correct 4 ms 7252 KB Output is correct
39 Correct 4 ms 7252 KB Output is correct
40 Correct 4 ms 7252 KB Output is correct
41 Correct 4 ms 7252 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 7368 KB Output is correct
45 Correct 4 ms 7252 KB Output is correct
46 Correct 4 ms 7252 KB Output is correct
47 Correct 5 ms 7252 KB Output is correct
48 Correct 4 ms 7252 KB Output is correct
49 Correct 4 ms 7360 KB Output is correct
50 Correct 5 ms 7256 KB Output is correct
51 Correct 4 ms 7252 KB Output is correct
52 Correct 3 ms 7252 KB Output is correct
53 Correct 4 ms 7252 KB Output is correct
54 Correct 4 ms 7252 KB Output is correct
55 Correct 6 ms 7252 KB Output is correct
56 Correct 4 ms 7252 KB Output is correct
57 Correct 4 ms 7368 KB Output is correct
58 Correct 4 ms 7348 KB Output is correct
59 Correct 5 ms 7252 KB Output is correct
60 Correct 6 ms 7252 KB Output is correct
61 Correct 4 ms 7352 KB Output is correct
62 Correct 4 ms 7252 KB Output is correct
63 Correct 4 ms 7252 KB Output is correct
64 Correct 4 ms 7328 KB Output is correct
65 Correct 5 ms 7276 KB Output is correct
66 Correct 97 ms 23860 KB Output is correct
67 Correct 99 ms 23924 KB Output is correct
68 Correct 138 ms 22192 KB Output is correct
69 Correct 140 ms 24152 KB Output is correct
70 Correct 107 ms 20040 KB Output is correct
71 Correct 125 ms 22576 KB Output is correct
72 Correct 153 ms 20876 KB Output is correct
73 Correct 114 ms 21304 KB Output is correct
74 Correct 112 ms 19288 KB Output is correct
75 Correct 120 ms 19188 KB Output is correct
76 Correct 112 ms 16460 KB Output is correct
77 Correct 108 ms 16328 KB Output is correct
78 Correct 79 ms 16160 KB Output is correct
79 Correct 82 ms 15976 KB Output is correct
80 Correct 80 ms 15036 KB Output is correct
81 Correct 78 ms 14912 KB Output is correct
82 Correct 7 ms 9300 KB Output is correct
83 Correct 7 ms 9300 KB Output is correct
84 Correct 9 ms 9272 KB Output is correct
85 Correct 7 ms 9300 KB Output is correct
86 Correct 6 ms 9300 KB Output is correct
87 Correct 6 ms 9300 KB Output is correct
88 Correct 4 ms 7364 KB Output is correct
89 Correct 5 ms 7440 KB Output is correct
90 Correct 4 ms 7448 KB Output is correct
91 Correct 5 ms 7508 KB Output is correct
92 Correct 5 ms 7504 KB Output is correct
93 Correct 4 ms 7508 KB Output is correct
94 Correct 5 ms 7636 KB Output is correct
95 Correct 6 ms 7508 KB Output is correct
96 Correct 5 ms 7380 KB Output is correct
97 Correct 5 ms 7380 KB Output is correct
98 Correct 5 ms 7380 KB Output is correct
99 Correct 5 ms 7380 KB Output is correct
100 Correct 6 ms 7380 KB Output is correct
101 Correct 5 ms 7380 KB Output is correct
102 Correct 5 ms 7380 KB Output is correct
103 Correct 4 ms 7380 KB Output is correct
104 Correct 4 ms 7380 KB Output is correct
105 Correct 5 ms 7380 KB Output is correct
106 Correct 5 ms 7380 KB Output is correct
107 Correct 4 ms 7380 KB Output is correct
108 Correct 125 ms 17612 KB Output is correct
109 Correct 148 ms 18824 KB Output is correct
110 Correct 135 ms 18928 KB Output is correct
111 Correct 113 ms 18812 KB Output is correct
112 Correct 130 ms 18996 KB Output is correct
113 Correct 146 ms 28756 KB Output is correct
114 Correct 156 ms 25156 KB Output is correct
115 Correct 133 ms 23664 KB Output is correct
116 Correct 141 ms 22032 KB Output is correct
117 Correct 166 ms 18876 KB Output is correct
118 Correct 126 ms 18864 KB Output is correct
119 Correct 115 ms 18924 KB Output is correct
120 Correct 116 ms 18920 KB Output is correct
121 Correct 115 ms 18380 KB Output is correct
122 Correct 113 ms 17684 KB Output is correct
123 Correct 80 ms 15196 KB Output is correct
124 Correct 80 ms 17928 KB Output is correct
125 Correct 89 ms 17972 KB Output is correct
126 Correct 92 ms 18096 KB Output is correct
127 Correct 83 ms 17944 KB Output is correct
128 Correct 4 ms 7380 KB Output is correct
129 Correct 4 ms 7380 KB Output is correct
130 Correct 4 ms 7380 KB Output is correct
131 Correct 5 ms 7380 KB Output is correct
132 Correct 4 ms 7380 KB Output is correct
133 Correct 4 ms 7380 KB Output is correct
134 Correct 4 ms 7380 KB Output is correct
135 Correct 6 ms 7380 KB Output is correct
136 Correct 4 ms 7380 KB Output is correct
137 Correct 5 ms 7380 KB Output is correct
138 Correct 5 ms 7380 KB Output is correct
139 Correct 4 ms 7508 KB Output is correct
140 Correct 6 ms 7380 KB Output is correct
141 Correct 5 ms 7508 KB Output is correct
142 Correct 5 ms 7380 KB Output is correct
143 Correct 5 ms 7380 KB Output is correct
144 Correct 5 ms 7380 KB Output is correct
145 Correct 4 ms 7380 KB Output is correct
146 Correct 4 ms 7380 KB Output is correct
147 Correct 5 ms 7368 KB Output is correct
148 Correct 5 ms 7380 KB Output is correct
149 Correct 5 ms 7380 KB Output is correct
150 Correct 4 ms 7380 KB Output is correct
151 Correct 4 ms 7380 KB Output is correct
152 Correct 4 ms 7380 KB Output is correct
153 Correct 4 ms 7380 KB Output is correct
154 Correct 4 ms 7380 KB Output is correct
155 Correct 130 ms 17544 KB Output is correct
156 Correct 134 ms 19076 KB Output is correct
157 Correct 142 ms 18456 KB Output is correct
158 Correct 124 ms 17280 KB Output is correct
159 Correct 113 ms 15924 KB Output is correct
160 Correct 106 ms 15236 KB Output is correct
161 Correct 115 ms 14920 KB Output is correct
162 Correct 141 ms 14612 KB Output is correct
163 Correct 109 ms 14448 KB Output is correct
164 Correct 97 ms 14376 KB Output is correct
165 Correct 91 ms 14176 KB Output is correct
166 Correct 98 ms 14296 KB Output is correct
167 Correct 112 ms 14180 KB Output is correct
168 Correct 113 ms 16876 KB Output is correct
169 Correct 155 ms 25060 KB Output is correct
170 Correct 153 ms 22660 KB Output is correct
171 Correct 137 ms 23216 KB Output is correct
172 Correct 132 ms 21336 KB Output is correct
173 Correct 147 ms 17292 KB Output is correct
174 Correct 137 ms 17208 KB Output is correct
175 Correct 140 ms 17296 KB Output is correct
176 Correct 108 ms 16588 KB Output is correct
177 Correct 104 ms 15980 KB Output is correct
178 Correct 146 ms 18096 KB Output is correct
179 Correct 124 ms 18264 KB Output is correct
180 Correct 112 ms 17500 KB Output is correct
181 Correct 119 ms 17604 KB Output is correct
182 Correct 3 ms 7380 KB Output is correct
183 Correct 5 ms 7380 KB Output is correct
184 Correct 5 ms 7380 KB Output is correct
185 Correct 4 ms 7380 KB Output is correct
186 Correct 5 ms 7380 KB Output is correct
187 Correct 4 ms 7380 KB Output is correct
188 Correct 6 ms 7376 KB Output is correct
189 Correct 4 ms 7380 KB Output is correct
190 Correct 4 ms 7380 KB Output is correct
191 Correct 5 ms 7380 KB Output is correct
192 Correct 4 ms 7252 KB Output is correct
193 Correct 5 ms 7380 KB Output is correct
194 Correct 5 ms 7380 KB Output is correct
195 Correct 5 ms 7380 KB Output is correct
196 Correct 5 ms 7380 KB Output is correct
197 Correct 4 ms 7380 KB Output is correct
198 Correct 4 ms 7380 KB Output is correct
199 Correct 5 ms 7380 KB Output is correct
200 Correct 5 ms 7380 KB Output is correct
201 Correct 6 ms 7380 KB Output is correct
202 Correct 5 ms 7380 KB Output is correct
203 Correct 4 ms 7380 KB Output is correct
204 Correct 5 ms 7380 KB Output is correct
205 Correct 4 ms 7380 KB Output is correct
206 Correct 4 ms 7380 KB Output is correct
207 Correct 4 ms 7348 KB Output is correct
208 Correct 4 ms 7372 KB Output is correct
209 Correct 7 ms 9300 KB Output is correct
210 Correct 82 ms 14788 KB Output is correct
211 Correct 117 ms 18376 KB Output is correct
212 Correct 142 ms 21008 KB Output is correct
213 Correct 178 ms 23008 KB Output is correct
214 Correct 88 ms 15948 KB Output is correct
215 Correct 101 ms 15680 KB Output is correct
216 Correct 164 ms 17560 KB Output is correct
217 Correct 119 ms 16068 KB Output is correct
218 Correct 113 ms 14584 KB Output is correct
219 Correct 128 ms 14244 KB Output is correct
220 Correct 130 ms 14028 KB Output is correct
221 Correct 101 ms 14072 KB Output is correct
222 Correct 117 ms 15544 KB Output is correct
223 Correct 157 ms 19272 KB Output is correct
224 Correct 140 ms 18256 KB Output is correct
225 Correct 141 ms 15788 KB Output is correct
226 Correct 130 ms 15744 KB Output is correct
227 Correct 142 ms 15840 KB Output is correct
228 Correct 115 ms 15564 KB Output is correct
229 Correct 106 ms 15224 KB Output is correct
230 Correct 119 ms 15728 KB Output is correct
231 Correct 141 ms 15796 KB Output is correct