#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <vector>
using namespace std;
const int MAXN = 100010;
vector<int> edge[MAXN];
map<int, int> bcce[MAXN];
int bcc_cnt = 0;
int pre_cnt = 0;
int pre[MAXN];
int low[MAXN];
int mypar[MAXN];
int myorigin[MAXN];
int is_sep[MAXN];
long long sum_perm_cnt = 0;
long long node_cnt[MAXN];
set<int> bcc_node[MAXN];
stack<pair<int, int> > st;
long long ans = 0;
long long xcnt = 0;
inline const long long nP3(long long n) {
return n * (n - 1) * (n - 2);
}
inline const long long nP2(long long n) {
return n * (n - 1);
}
void dfs(int origin, int u, int par) {
int child = 0, flag = 0;
xcnt++;
mypar[u] = par;
myorigin[u] = origin;
node_cnt[u] = 1;
low[u] = pre[u] = ++pre_cnt;
for(auto &v: edge[u]) {
if(v == par) continue;
if(!pre[v]) {
child++;
st.push({u, v});
dfs(origin, v, u);
node_cnt[u] += node_cnt[v];
low[u] = min(low[u], low[v]);
if(pre[u] <= low[v]) {
bcc_cnt++;
flag = 1;
while(st.size() && (st.top().first != u || st.top().second != v)) {
int x = st.top().first;
int y = st.top().second;
bcc_node[bcc_cnt].insert(x);
bcc_node[bcc_cnt].insert(y);
bcce[x][y] = bcc_cnt;
bcce[y][x] = bcc_cnt;
st.pop();
}
int x = st.top().first;
int y = st.top().second;
bcc_node[bcc_cnt].insert(x);
bcc_node[bcc_cnt].insert(y);
bcce[x][y] = bcc_cnt;
bcce[y][x] = bcc_cnt;
st.pop();
}
}
else if(pre[u] > pre[v]) {
st.push({u, v});
low[u] = min(low[u], pre[v]);
}
}
if(child >= 2 && par == 0) is_sep[u] = 1;
else if(flag && par != 0) is_sep[u] = 1;
}
int main() {
ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
int n, m; cin >> n >> m;
for(int i = 0; i < m; i++) {
int x, y; cin >> x >> y;
edge[x].push_back(y);
edge[y].push_back(x);
}
for (int i = 1; i <= n; i++) {
if (pre[i]) {
continue;
}
xcnt = 0;
dfs(i, i, 0);
ans += nP3(xcnt);
}
for (int i = 1; i <= bcc_cnt; i++) {
for(auto &u: bcc_node[i]) {
long long node_sum = 0;
if (!bcc_node[i].count(mypar[u])) {
node_sum += node_cnt[myorigin[u]] - node_cnt[u];
}
for(auto &v: edge[u]) {
if(mypar[v] != u) {
continue;
}
if(bcce[u][v] == i) {
continue;
}
node_sum += node_cnt[v];
}
ans -= nP2(node_sum + 1) * (bcc_node[i].size() - 1);
}
}
cout << ans << "\n";
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
11988 KB |
Output is correct |
2 |
Correct |
6 ms |
11988 KB |
Output is correct |
3 |
Correct |
7 ms |
11988 KB |
Output is correct |
4 |
Correct |
6 ms |
11988 KB |
Output is correct |
5 |
Correct |
6 ms |
11988 KB |
Output is correct |
6 |
Correct |
7 ms |
12060 KB |
Output is correct |
7 |
Correct |
6 ms |
11988 KB |
Output is correct |
8 |
Correct |
7 ms |
11988 KB |
Output is correct |
9 |
Correct |
7 ms |
12080 KB |
Output is correct |
10 |
Correct |
6 ms |
11988 KB |
Output is correct |
11 |
Correct |
7 ms |
11988 KB |
Output is correct |
12 |
Correct |
7 ms |
12068 KB |
Output is correct |
13 |
Correct |
7 ms |
12040 KB |
Output is correct |
14 |
Correct |
7 ms |
12012 KB |
Output is correct |
15 |
Correct |
6 ms |
11988 KB |
Output is correct |
16 |
Correct |
7 ms |
11984 KB |
Output is correct |
17 |
Correct |
7 ms |
11988 KB |
Output is correct |
18 |
Correct |
7 ms |
12068 KB |
Output is correct |
19 |
Correct |
9 ms |
12072 KB |
Output is correct |
20 |
Correct |
6 ms |
12068 KB |
Output is correct |
21 |
Correct |
7 ms |
11988 KB |
Output is correct |
22 |
Correct |
7 ms |
12068 KB |
Output is correct |
23 |
Correct |
7 ms |
12000 KB |
Output is correct |
24 |
Correct |
6 ms |
11988 KB |
Output is correct |
25 |
Correct |
7 ms |
11988 KB |
Output is correct |
26 |
Correct |
7 ms |
11988 KB |
Output is correct |
27 |
Correct |
7 ms |
12000 KB |
Output is correct |
28 |
Correct |
7 ms |
11988 KB |
Output is correct |
29 |
Correct |
6 ms |
11988 KB |
Output is correct |
30 |
Correct |
7 ms |
11988 KB |
Output is correct |
31 |
Correct |
7 ms |
12072 KB |
Output is correct |
32 |
Correct |
6 ms |
12072 KB |
Output is correct |
33 |
Correct |
6 ms |
11988 KB |
Output is correct |
34 |
Correct |
6 ms |
11988 KB |
Output is correct |
35 |
Correct |
6 ms |
11972 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
11988 KB |
Output is correct |
2 |
Correct |
6 ms |
11988 KB |
Output is correct |
3 |
Correct |
7 ms |
11988 KB |
Output is correct |
4 |
Correct |
6 ms |
11988 KB |
Output is correct |
5 |
Correct |
6 ms |
11988 KB |
Output is correct |
6 |
Correct |
7 ms |
12060 KB |
Output is correct |
7 |
Correct |
6 ms |
11988 KB |
Output is correct |
8 |
Correct |
7 ms |
11988 KB |
Output is correct |
9 |
Correct |
7 ms |
12080 KB |
Output is correct |
10 |
Correct |
6 ms |
11988 KB |
Output is correct |
11 |
Correct |
7 ms |
11988 KB |
Output is correct |
12 |
Correct |
7 ms |
12068 KB |
Output is correct |
13 |
Correct |
7 ms |
12040 KB |
Output is correct |
14 |
Correct |
7 ms |
12012 KB |
Output is correct |
15 |
Correct |
6 ms |
11988 KB |
Output is correct |
16 |
Correct |
7 ms |
11984 KB |
Output is correct |
17 |
Correct |
7 ms |
11988 KB |
Output is correct |
18 |
Correct |
7 ms |
12068 KB |
Output is correct |
19 |
Correct |
9 ms |
12072 KB |
Output is correct |
20 |
Correct |
6 ms |
12068 KB |
Output is correct |
21 |
Correct |
7 ms |
11988 KB |
Output is correct |
22 |
Correct |
7 ms |
12068 KB |
Output is correct |
23 |
Correct |
7 ms |
12000 KB |
Output is correct |
24 |
Correct |
6 ms |
11988 KB |
Output is correct |
25 |
Correct |
7 ms |
11988 KB |
Output is correct |
26 |
Correct |
7 ms |
11988 KB |
Output is correct |
27 |
Correct |
7 ms |
12000 KB |
Output is correct |
28 |
Correct |
7 ms |
11988 KB |
Output is correct |
29 |
Correct |
6 ms |
11988 KB |
Output is correct |
30 |
Correct |
7 ms |
11988 KB |
Output is correct |
31 |
Correct |
7 ms |
12072 KB |
Output is correct |
32 |
Correct |
6 ms |
12072 KB |
Output is correct |
33 |
Correct |
6 ms |
11988 KB |
Output is correct |
34 |
Correct |
6 ms |
11988 KB |
Output is correct |
35 |
Correct |
6 ms |
11972 KB |
Output is correct |
36 |
Correct |
6 ms |
11988 KB |
Output is correct |
37 |
Correct |
7 ms |
11988 KB |
Output is correct |
38 |
Correct |
7 ms |
12036 KB |
Output is correct |
39 |
Correct |
6 ms |
11988 KB |
Output is correct |
40 |
Correct |
7 ms |
12116 KB |
Output is correct |
41 |
Correct |
6 ms |
11988 KB |
Output is correct |
42 |
Correct |
7 ms |
11988 KB |
Output is correct |
43 |
Correct |
8 ms |
12068 KB |
Output is correct |
44 |
Correct |
6 ms |
11988 KB |
Output is correct |
45 |
Correct |
7 ms |
11988 KB |
Output is correct |
46 |
Correct |
7 ms |
11988 KB |
Output is correct |
47 |
Correct |
7 ms |
12068 KB |
Output is correct |
48 |
Correct |
7 ms |
11988 KB |
Output is correct |
49 |
Correct |
7 ms |
11968 KB |
Output is correct |
50 |
Correct |
7 ms |
11988 KB |
Output is correct |
51 |
Correct |
7 ms |
12072 KB |
Output is correct |
52 |
Correct |
7 ms |
11988 KB |
Output is correct |
53 |
Correct |
7 ms |
12068 KB |
Output is correct |
54 |
Correct |
7 ms |
11988 KB |
Output is correct |
55 |
Correct |
7 ms |
12076 KB |
Output is correct |
56 |
Correct |
7 ms |
11988 KB |
Output is correct |
57 |
Correct |
7 ms |
12100 KB |
Output is correct |
58 |
Correct |
7 ms |
11988 KB |
Output is correct |
59 |
Correct |
7 ms |
12072 KB |
Output is correct |
60 |
Correct |
7 ms |
11988 KB |
Output is correct |
61 |
Correct |
7 ms |
12100 KB |
Output is correct |
62 |
Correct |
7 ms |
12072 KB |
Output is correct |
63 |
Correct |
7 ms |
11988 KB |
Output is correct |
64 |
Correct |
9 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
11988 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
207 ms |
47256 KB |
Output is correct |
2 |
Correct |
232 ms |
47284 KB |
Output is correct |
3 |
Correct |
150 ms |
42180 KB |
Output is correct |
4 |
Correct |
197 ms |
45000 KB |
Output is correct |
5 |
Correct |
165 ms |
38924 KB |
Output is correct |
6 |
Correct |
153 ms |
39736 KB |
Output is correct |
7 |
Correct |
153 ms |
37964 KB |
Output is correct |
8 |
Correct |
152 ms |
39120 KB |
Output is correct |
9 |
Correct |
135 ms |
36452 KB |
Output is correct |
10 |
Correct |
155 ms |
37324 KB |
Output is correct |
11 |
Correct |
109 ms |
31692 KB |
Output is correct |
12 |
Correct |
118 ms |
31308 KB |
Output is correct |
13 |
Correct |
88 ms |
30284 KB |
Output is correct |
14 |
Correct |
86 ms |
29916 KB |
Output is correct |
15 |
Correct |
64 ms |
26828 KB |
Output is correct |
16 |
Correct |
81 ms |
26660 KB |
Output is correct |
17 |
Correct |
12 ms |
14420 KB |
Output is correct |
18 |
Correct |
10 ms |
14412 KB |
Output is correct |
19 |
Correct |
9 ms |
14420 KB |
Output is correct |
20 |
Correct |
9 ms |
14420 KB |
Output is correct |
21 |
Correct |
8 ms |
14396 KB |
Output is correct |
22 |
Correct |
9 ms |
14420 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
12244 KB |
Output is correct |
2 |
Correct |
7 ms |
12340 KB |
Output is correct |
3 |
Correct |
7 ms |
12252 KB |
Output is correct |
4 |
Correct |
7 ms |
12372 KB |
Output is correct |
5 |
Correct |
7 ms |
12372 KB |
Output is correct |
6 |
Correct |
7 ms |
12400 KB |
Output is correct |
7 |
Correct |
8 ms |
12340 KB |
Output is correct |
8 |
Correct |
8 ms |
12392 KB |
Output is correct |
9 |
Correct |
7 ms |
12320 KB |
Output is correct |
10 |
Correct |
10 ms |
12244 KB |
Output is correct |
11 |
Correct |
7 ms |
12244 KB |
Output is correct |
12 |
Correct |
8 ms |
12244 KB |
Output is correct |
13 |
Correct |
8 ms |
12244 KB |
Output is correct |
14 |
Correct |
7 ms |
12244 KB |
Output is correct |
15 |
Correct |
7 ms |
12244 KB |
Output is correct |
16 |
Correct |
7 ms |
12116 KB |
Output is correct |
17 |
Correct |
53 ms |
12244 KB |
Output is correct |
18 |
Correct |
21 ms |
12244 KB |
Output is correct |
19 |
Correct |
14 ms |
12348 KB |
Output is correct |
20 |
Correct |
10 ms |
12344 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
142 ms |
36928 KB |
Output is correct |
2 |
Correct |
145 ms |
36820 KB |
Output is correct |
3 |
Correct |
156 ms |
36700 KB |
Output is correct |
4 |
Correct |
144 ms |
36760 KB |
Output is correct |
5 |
Correct |
153 ms |
36796 KB |
Output is correct |
6 |
Correct |
157 ms |
45188 KB |
Output is correct |
7 |
Correct |
177 ms |
42292 KB |
Output is correct |
8 |
Correct |
156 ms |
40848 KB |
Output is correct |
9 |
Correct |
154 ms |
39628 KB |
Output is correct |
10 |
Correct |
149 ms |
36860 KB |
Output is correct |
11 |
Correct |
140 ms |
36684 KB |
Output is correct |
12 |
Correct |
150 ms |
36812 KB |
Output is correct |
13 |
Correct |
152 ms |
36696 KB |
Output is correct |
14 |
Correct |
132 ms |
34760 KB |
Output is correct |
15 |
Correct |
110 ms |
32780 KB |
Output is correct |
16 |
Correct |
71 ms |
26444 KB |
Output is correct |
17 |
Execution timed out |
1086 ms |
36648 KB |
Time limit exceeded |
18 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
12244 KB |
Output is correct |
2 |
Correct |
7 ms |
12228 KB |
Output is correct |
3 |
Correct |
7 ms |
12244 KB |
Output is correct |
4 |
Correct |
7 ms |
12352 KB |
Output is correct |
5 |
Correct |
8 ms |
12244 KB |
Output is correct |
6 |
Correct |
9 ms |
12244 KB |
Output is correct |
7 |
Correct |
7 ms |
12244 KB |
Output is correct |
8 |
Correct |
7 ms |
12244 KB |
Output is correct |
9 |
Correct |
8 ms |
12244 KB |
Output is correct |
10 |
Correct |
7 ms |
12204 KB |
Output is correct |
11 |
Correct |
8 ms |
12244 KB |
Output is correct |
12 |
Correct |
8 ms |
12332 KB |
Output is correct |
13 |
Correct |
8 ms |
12372 KB |
Output is correct |
14 |
Correct |
8 ms |
12372 KB |
Output is correct |
15 |
Correct |
7 ms |
12372 KB |
Output is correct |
16 |
Correct |
7 ms |
12336 KB |
Output is correct |
17 |
Correct |
8 ms |
12332 KB |
Output is correct |
18 |
Correct |
7 ms |
12332 KB |
Output is correct |
19 |
Correct |
8 ms |
12204 KB |
Output is correct |
20 |
Correct |
7 ms |
12244 KB |
Output is correct |
21 |
Correct |
14 ms |
12292 KB |
Output is correct |
22 |
Correct |
9 ms |
12244 KB |
Output is correct |
23 |
Correct |
8 ms |
12244 KB |
Output is correct |
24 |
Correct |
10 ms |
12336 KB |
Output is correct |
25 |
Correct |
6 ms |
12116 KB |
Output is correct |
26 |
Correct |
7 ms |
12116 KB |
Output is correct |
27 |
Correct |
6 ms |
12072 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
135 ms |
36772 KB |
Output is correct |
2 |
Correct |
149 ms |
36684 KB |
Output is correct |
3 |
Correct |
163 ms |
37552 KB |
Output is correct |
4 |
Correct |
166 ms |
38264 KB |
Output is correct |
5 |
Correct |
139 ms |
36340 KB |
Output is correct |
6 |
Correct |
133 ms |
35532 KB |
Output is correct |
7 |
Correct |
157 ms |
34980 KB |
Output is correct |
8 |
Correct |
145 ms |
34508 KB |
Output is correct |
9 |
Correct |
150 ms |
34124 KB |
Output is correct |
10 |
Correct |
144 ms |
34052 KB |
Output is correct |
11 |
Correct |
142 ms |
33744 KB |
Output is correct |
12 |
Correct |
145 ms |
33740 KB |
Output is correct |
13 |
Correct |
147 ms |
33808 KB |
Output is correct |
14 |
Correct |
158 ms |
37152 KB |
Output is correct |
15 |
Correct |
174 ms |
45392 KB |
Output is correct |
16 |
Correct |
172 ms |
43212 KB |
Output is correct |
17 |
Correct |
168 ms |
44620 KB |
Output is correct |
18 |
Correct |
178 ms |
42652 KB |
Output is correct |
19 |
Correct |
178 ms |
38304 KB |
Output is correct |
20 |
Correct |
165 ms |
38152 KB |
Output is correct |
21 |
Correct |
178 ms |
38128 KB |
Output is correct |
22 |
Correct |
155 ms |
36192 KB |
Output is correct |
23 |
Correct |
128 ms |
34128 KB |
Output is correct |
24 |
Execution timed out |
1091 ms |
39032 KB |
Time limit exceeded |
25 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
11988 KB |
Output is correct |
2 |
Correct |
6 ms |
11988 KB |
Output is correct |
3 |
Correct |
7 ms |
11988 KB |
Output is correct |
4 |
Correct |
6 ms |
11988 KB |
Output is correct |
5 |
Correct |
6 ms |
11988 KB |
Output is correct |
6 |
Correct |
7 ms |
12060 KB |
Output is correct |
7 |
Correct |
6 ms |
11988 KB |
Output is correct |
8 |
Correct |
7 ms |
11988 KB |
Output is correct |
9 |
Correct |
7 ms |
12080 KB |
Output is correct |
10 |
Correct |
6 ms |
11988 KB |
Output is correct |
11 |
Correct |
7 ms |
11988 KB |
Output is correct |
12 |
Correct |
7 ms |
12068 KB |
Output is correct |
13 |
Correct |
7 ms |
12040 KB |
Output is correct |
14 |
Correct |
7 ms |
12012 KB |
Output is correct |
15 |
Correct |
6 ms |
11988 KB |
Output is correct |
16 |
Correct |
7 ms |
11984 KB |
Output is correct |
17 |
Correct |
7 ms |
11988 KB |
Output is correct |
18 |
Correct |
7 ms |
12068 KB |
Output is correct |
19 |
Correct |
9 ms |
12072 KB |
Output is correct |
20 |
Correct |
6 ms |
12068 KB |
Output is correct |
21 |
Correct |
7 ms |
11988 KB |
Output is correct |
22 |
Correct |
7 ms |
12068 KB |
Output is correct |
23 |
Correct |
7 ms |
12000 KB |
Output is correct |
24 |
Correct |
6 ms |
11988 KB |
Output is correct |
25 |
Correct |
7 ms |
11988 KB |
Output is correct |
26 |
Correct |
7 ms |
11988 KB |
Output is correct |
27 |
Correct |
7 ms |
12000 KB |
Output is correct |
28 |
Correct |
7 ms |
11988 KB |
Output is correct |
29 |
Correct |
6 ms |
11988 KB |
Output is correct |
30 |
Correct |
7 ms |
11988 KB |
Output is correct |
31 |
Correct |
7 ms |
12072 KB |
Output is correct |
32 |
Correct |
6 ms |
12072 KB |
Output is correct |
33 |
Correct |
6 ms |
11988 KB |
Output is correct |
34 |
Correct |
6 ms |
11988 KB |
Output is correct |
35 |
Correct |
6 ms |
11972 KB |
Output is correct |
36 |
Correct |
6 ms |
11988 KB |
Output is correct |
37 |
Correct |
7 ms |
11988 KB |
Output is correct |
38 |
Correct |
7 ms |
12036 KB |
Output is correct |
39 |
Correct |
6 ms |
11988 KB |
Output is correct |
40 |
Correct |
7 ms |
12116 KB |
Output is correct |
41 |
Correct |
6 ms |
11988 KB |
Output is correct |
42 |
Correct |
7 ms |
11988 KB |
Output is correct |
43 |
Correct |
8 ms |
12068 KB |
Output is correct |
44 |
Correct |
6 ms |
11988 KB |
Output is correct |
45 |
Correct |
7 ms |
11988 KB |
Output is correct |
46 |
Correct |
7 ms |
11988 KB |
Output is correct |
47 |
Correct |
7 ms |
12068 KB |
Output is correct |
48 |
Correct |
7 ms |
11988 KB |
Output is correct |
49 |
Correct |
7 ms |
11968 KB |
Output is correct |
50 |
Correct |
7 ms |
11988 KB |
Output is correct |
51 |
Correct |
7 ms |
12072 KB |
Output is correct |
52 |
Correct |
7 ms |
11988 KB |
Output is correct |
53 |
Correct |
7 ms |
12068 KB |
Output is correct |
54 |
Correct |
7 ms |
11988 KB |
Output is correct |
55 |
Correct |
7 ms |
12076 KB |
Output is correct |
56 |
Correct |
7 ms |
11988 KB |
Output is correct |
57 |
Correct |
7 ms |
12100 KB |
Output is correct |
58 |
Correct |
7 ms |
11988 KB |
Output is correct |
59 |
Correct |
7 ms |
12072 KB |
Output is correct |
60 |
Correct |
7 ms |
11988 KB |
Output is correct |
61 |
Correct |
7 ms |
12100 KB |
Output is correct |
62 |
Correct |
7 ms |
12072 KB |
Output is correct |
63 |
Correct |
7 ms |
11988 KB |
Output is correct |
64 |
Correct |
9 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
11988 KB |
Output is correct |
66 |
Correct |
7 ms |
11988 KB |
Output is correct |
67 |
Correct |
8 ms |
12140 KB |
Output is correct |
68 |
Correct |
7 ms |
12320 KB |
Output is correct |
69 |
Correct |
8 ms |
12340 KB |
Output is correct |
70 |
Correct |
8 ms |
12468 KB |
Output is correct |
71 |
Correct |
9 ms |
12244 KB |
Output is correct |
72 |
Correct |
8 ms |
12208 KB |
Output is correct |
73 |
Correct |
8 ms |
12244 KB |
Output is correct |
74 |
Correct |
7 ms |
12244 KB |
Output is correct |
75 |
Correct |
7 ms |
12212 KB |
Output is correct |
76 |
Correct |
7 ms |
12060 KB |
Output is correct |
77 |
Correct |
8 ms |
12336 KB |
Output is correct |
78 |
Correct |
7 ms |
12248 KB |
Output is correct |
79 |
Correct |
7 ms |
12340 KB |
Output is correct |
80 |
Correct |
7 ms |
12244 KB |
Output is correct |
81 |
Correct |
7 ms |
12284 KB |
Output is correct |
82 |
Correct |
7 ms |
12372 KB |
Output is correct |
83 |
Correct |
8 ms |
12372 KB |
Output is correct |
84 |
Correct |
9 ms |
12340 KB |
Output is correct |
85 |
Correct |
7 ms |
12340 KB |
Output is correct |
86 |
Correct |
8 ms |
12244 KB |
Output is correct |
87 |
Correct |
7 ms |
12260 KB |
Output is correct |
88 |
Correct |
8 ms |
12232 KB |
Output is correct |
89 |
Correct |
7 ms |
12212 KB |
Output is correct |
90 |
Correct |
7 ms |
12292 KB |
Output is correct |
91 |
Correct |
9 ms |
12340 KB |
Output is correct |
92 |
Correct |
8 ms |
12336 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
11988 KB |
Output is correct |
2 |
Correct |
6 ms |
11988 KB |
Output is correct |
3 |
Correct |
7 ms |
11988 KB |
Output is correct |
4 |
Correct |
6 ms |
11988 KB |
Output is correct |
5 |
Correct |
6 ms |
11988 KB |
Output is correct |
6 |
Correct |
7 ms |
12060 KB |
Output is correct |
7 |
Correct |
6 ms |
11988 KB |
Output is correct |
8 |
Correct |
7 ms |
11988 KB |
Output is correct |
9 |
Correct |
7 ms |
12080 KB |
Output is correct |
10 |
Correct |
6 ms |
11988 KB |
Output is correct |
11 |
Correct |
7 ms |
11988 KB |
Output is correct |
12 |
Correct |
7 ms |
12068 KB |
Output is correct |
13 |
Correct |
7 ms |
12040 KB |
Output is correct |
14 |
Correct |
7 ms |
12012 KB |
Output is correct |
15 |
Correct |
6 ms |
11988 KB |
Output is correct |
16 |
Correct |
7 ms |
11984 KB |
Output is correct |
17 |
Correct |
7 ms |
11988 KB |
Output is correct |
18 |
Correct |
7 ms |
12068 KB |
Output is correct |
19 |
Correct |
9 ms |
12072 KB |
Output is correct |
20 |
Correct |
6 ms |
12068 KB |
Output is correct |
21 |
Correct |
7 ms |
11988 KB |
Output is correct |
22 |
Correct |
7 ms |
12068 KB |
Output is correct |
23 |
Correct |
7 ms |
12000 KB |
Output is correct |
24 |
Correct |
6 ms |
11988 KB |
Output is correct |
25 |
Correct |
7 ms |
11988 KB |
Output is correct |
26 |
Correct |
7 ms |
11988 KB |
Output is correct |
27 |
Correct |
7 ms |
12000 KB |
Output is correct |
28 |
Correct |
7 ms |
11988 KB |
Output is correct |
29 |
Correct |
6 ms |
11988 KB |
Output is correct |
30 |
Correct |
7 ms |
11988 KB |
Output is correct |
31 |
Correct |
7 ms |
12072 KB |
Output is correct |
32 |
Correct |
6 ms |
12072 KB |
Output is correct |
33 |
Correct |
6 ms |
11988 KB |
Output is correct |
34 |
Correct |
6 ms |
11988 KB |
Output is correct |
35 |
Correct |
6 ms |
11972 KB |
Output is correct |
36 |
Correct |
6 ms |
11988 KB |
Output is correct |
37 |
Correct |
7 ms |
11988 KB |
Output is correct |
38 |
Correct |
7 ms |
12036 KB |
Output is correct |
39 |
Correct |
6 ms |
11988 KB |
Output is correct |
40 |
Correct |
7 ms |
12116 KB |
Output is correct |
41 |
Correct |
6 ms |
11988 KB |
Output is correct |
42 |
Correct |
7 ms |
11988 KB |
Output is correct |
43 |
Correct |
8 ms |
12068 KB |
Output is correct |
44 |
Correct |
6 ms |
11988 KB |
Output is correct |
45 |
Correct |
7 ms |
11988 KB |
Output is correct |
46 |
Correct |
7 ms |
11988 KB |
Output is correct |
47 |
Correct |
7 ms |
12068 KB |
Output is correct |
48 |
Correct |
7 ms |
11988 KB |
Output is correct |
49 |
Correct |
7 ms |
11968 KB |
Output is correct |
50 |
Correct |
7 ms |
11988 KB |
Output is correct |
51 |
Correct |
7 ms |
12072 KB |
Output is correct |
52 |
Correct |
7 ms |
11988 KB |
Output is correct |
53 |
Correct |
7 ms |
12068 KB |
Output is correct |
54 |
Correct |
7 ms |
11988 KB |
Output is correct |
55 |
Correct |
7 ms |
12076 KB |
Output is correct |
56 |
Correct |
7 ms |
11988 KB |
Output is correct |
57 |
Correct |
7 ms |
12100 KB |
Output is correct |
58 |
Correct |
7 ms |
11988 KB |
Output is correct |
59 |
Correct |
7 ms |
12072 KB |
Output is correct |
60 |
Correct |
7 ms |
11988 KB |
Output is correct |
61 |
Correct |
7 ms |
12100 KB |
Output is correct |
62 |
Correct |
7 ms |
12072 KB |
Output is correct |
63 |
Correct |
7 ms |
11988 KB |
Output is correct |
64 |
Correct |
9 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
11988 KB |
Output is correct |
66 |
Correct |
207 ms |
47256 KB |
Output is correct |
67 |
Correct |
232 ms |
47284 KB |
Output is correct |
68 |
Correct |
150 ms |
42180 KB |
Output is correct |
69 |
Correct |
197 ms |
45000 KB |
Output is correct |
70 |
Correct |
165 ms |
38924 KB |
Output is correct |
71 |
Correct |
153 ms |
39736 KB |
Output is correct |
72 |
Correct |
153 ms |
37964 KB |
Output is correct |
73 |
Correct |
152 ms |
39120 KB |
Output is correct |
74 |
Correct |
135 ms |
36452 KB |
Output is correct |
75 |
Correct |
155 ms |
37324 KB |
Output is correct |
76 |
Correct |
109 ms |
31692 KB |
Output is correct |
77 |
Correct |
118 ms |
31308 KB |
Output is correct |
78 |
Correct |
88 ms |
30284 KB |
Output is correct |
79 |
Correct |
86 ms |
29916 KB |
Output is correct |
80 |
Correct |
64 ms |
26828 KB |
Output is correct |
81 |
Correct |
81 ms |
26660 KB |
Output is correct |
82 |
Correct |
12 ms |
14420 KB |
Output is correct |
83 |
Correct |
10 ms |
14412 KB |
Output is correct |
84 |
Correct |
9 ms |
14420 KB |
Output is correct |
85 |
Correct |
9 ms |
14420 KB |
Output is correct |
86 |
Correct |
8 ms |
14396 KB |
Output is correct |
87 |
Correct |
9 ms |
14420 KB |
Output is correct |
88 |
Correct |
8 ms |
12244 KB |
Output is correct |
89 |
Correct |
7 ms |
12340 KB |
Output is correct |
90 |
Correct |
7 ms |
12252 KB |
Output is correct |
91 |
Correct |
7 ms |
12372 KB |
Output is correct |
92 |
Correct |
7 ms |
12372 KB |
Output is correct |
93 |
Correct |
7 ms |
12400 KB |
Output is correct |
94 |
Correct |
8 ms |
12340 KB |
Output is correct |
95 |
Correct |
8 ms |
12392 KB |
Output is correct |
96 |
Correct |
7 ms |
12320 KB |
Output is correct |
97 |
Correct |
10 ms |
12244 KB |
Output is correct |
98 |
Correct |
7 ms |
12244 KB |
Output is correct |
99 |
Correct |
8 ms |
12244 KB |
Output is correct |
100 |
Correct |
8 ms |
12244 KB |
Output is correct |
101 |
Correct |
7 ms |
12244 KB |
Output is correct |
102 |
Correct |
7 ms |
12244 KB |
Output is correct |
103 |
Correct |
7 ms |
12116 KB |
Output is correct |
104 |
Correct |
53 ms |
12244 KB |
Output is correct |
105 |
Correct |
21 ms |
12244 KB |
Output is correct |
106 |
Correct |
14 ms |
12348 KB |
Output is correct |
107 |
Correct |
10 ms |
12344 KB |
Output is correct |
108 |
Correct |
142 ms |
36928 KB |
Output is correct |
109 |
Correct |
145 ms |
36820 KB |
Output is correct |
110 |
Correct |
156 ms |
36700 KB |
Output is correct |
111 |
Correct |
144 ms |
36760 KB |
Output is correct |
112 |
Correct |
153 ms |
36796 KB |
Output is correct |
113 |
Correct |
157 ms |
45188 KB |
Output is correct |
114 |
Correct |
177 ms |
42292 KB |
Output is correct |
115 |
Correct |
156 ms |
40848 KB |
Output is correct |
116 |
Correct |
154 ms |
39628 KB |
Output is correct |
117 |
Correct |
149 ms |
36860 KB |
Output is correct |
118 |
Correct |
140 ms |
36684 KB |
Output is correct |
119 |
Correct |
150 ms |
36812 KB |
Output is correct |
120 |
Correct |
152 ms |
36696 KB |
Output is correct |
121 |
Correct |
132 ms |
34760 KB |
Output is correct |
122 |
Correct |
110 ms |
32780 KB |
Output is correct |
123 |
Correct |
71 ms |
26444 KB |
Output is correct |
124 |
Execution timed out |
1086 ms |
36648 KB |
Time limit exceeded |
125 |
Halted |
0 ms |
0 KB |
- |