#include <iostream>
#include <vector>
#include <map>
using namespace std;
map<pair<int, int>, int> mm;
vector<int> g[100005], gg[200005], v;
int tin[100005], low[100005], z = 0, db[100005], hh;
long long int s[200005], f[200005], kk = 0, n, res = 0;
void dfs(int x, int p) {
tin[x] = low[x] = ++z;
v.push_back(x);
int c = 0;
for (int w : g[x]) {
if (w == p) continue;
if (tin[w] == 0) {
dfs(w, x);
low[x] = min(low[x], low[w]);
if (low[w] >= tin[x]) {
hh++;
gg[hh].push_back(x);
gg[x].push_back(hh);
while (1) {
int h = v.back();
gg[h].push_back(hh);
gg[hh].push_back(h);
v.pop_back();
if (h == w) break;
}
}
c++;
}
else low[x] = min(low[x], tin[w]);
}
if (p == -1 && c >= 2) {
}
}
void dfs3(int x, int p) {
db[x] = 1;
if (x <= n) kk++;
for (int w : gg[x]) {
if (w == p) continue;
dfs3(w, x);
}
}
void dfs4(int x, int p) {
s[x] = (x <= n);
for (int w : gg[x]) {
if (w == p) continue;
dfs4(w, x);
s[x] += s[w];
if (x > n) res -= s[w] * (s[w] - 1) * (gg[x].size() - 1);
}
if (x > n) res -= (kk - s[x]) * (kk - s[x] - 1) * (gg[x].size() - 1);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
long long int m;
cin >> n >> m;
for (int i = 1; i <= m; i++) {
int u, v;
cin >> u >> v;
g[u].push_back(v);
g[v].push_back(u);
}
hh = n;
for (int i = 1; i <= n; i++) {
if (tin[i] == 0) {
dfs(i, -1);
}
}
for (int i = 1; i <= n; i++) {
if (db[i] == 0) {
kk = 0;
dfs3(i, -1);
res += kk * (kk - 1) * (kk - 2);
dfs4(i, -1);
}
}
cout << res;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
11600 KB |
Output is correct |
2 |
Correct |
3 ms |
11600 KB |
Output is correct |
3 |
Correct |
3 ms |
11600 KB |
Output is correct |
4 |
Correct |
3 ms |
11392 KB |
Output is correct |
5 |
Correct |
3 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11600 KB |
Output is correct |
7 |
Correct |
3 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
4 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11628 KB |
Output is correct |
11 |
Correct |
3 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
3 ms |
11600 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
3 ms |
11600 KB |
Output is correct |
16 |
Correct |
3 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
3 ms |
11604 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
3 ms |
11632 KB |
Output is correct |
21 |
Correct |
3 ms |
11600 KB |
Output is correct |
22 |
Correct |
3 ms |
11600 KB |
Output is correct |
23 |
Correct |
4 ms |
11600 KB |
Output is correct |
24 |
Correct |
3 ms |
11600 KB |
Output is correct |
25 |
Correct |
3 ms |
11600 KB |
Output is correct |
26 |
Correct |
3 ms |
11544 KB |
Output is correct |
27 |
Correct |
2 ms |
11600 KB |
Output is correct |
28 |
Correct |
4 ms |
11600 KB |
Output is correct |
29 |
Correct |
4 ms |
11600 KB |
Output is correct |
30 |
Correct |
3 ms |
11600 KB |
Output is correct |
31 |
Correct |
3 ms |
11600 KB |
Output is correct |
32 |
Correct |
3 ms |
11624 KB |
Output is correct |
33 |
Correct |
3 ms |
11600 KB |
Output is correct |
34 |
Correct |
3 ms |
11628 KB |
Output is correct |
35 |
Correct |
3 ms |
11800 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
11600 KB |
Output is correct |
2 |
Correct |
3 ms |
11600 KB |
Output is correct |
3 |
Correct |
3 ms |
11600 KB |
Output is correct |
4 |
Correct |
3 ms |
11392 KB |
Output is correct |
5 |
Correct |
3 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11600 KB |
Output is correct |
7 |
Correct |
3 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
4 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11628 KB |
Output is correct |
11 |
Correct |
3 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
3 ms |
11600 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
3 ms |
11600 KB |
Output is correct |
16 |
Correct |
3 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
3 ms |
11604 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
3 ms |
11632 KB |
Output is correct |
21 |
Correct |
3 ms |
11600 KB |
Output is correct |
22 |
Correct |
3 ms |
11600 KB |
Output is correct |
23 |
Correct |
4 ms |
11600 KB |
Output is correct |
24 |
Correct |
3 ms |
11600 KB |
Output is correct |
25 |
Correct |
3 ms |
11600 KB |
Output is correct |
26 |
Correct |
3 ms |
11544 KB |
Output is correct |
27 |
Correct |
2 ms |
11600 KB |
Output is correct |
28 |
Correct |
4 ms |
11600 KB |
Output is correct |
29 |
Correct |
4 ms |
11600 KB |
Output is correct |
30 |
Correct |
3 ms |
11600 KB |
Output is correct |
31 |
Correct |
3 ms |
11600 KB |
Output is correct |
32 |
Correct |
3 ms |
11624 KB |
Output is correct |
33 |
Correct |
3 ms |
11600 KB |
Output is correct |
34 |
Correct |
3 ms |
11628 KB |
Output is correct |
35 |
Correct |
3 ms |
11800 KB |
Output is correct |
36 |
Correct |
3 ms |
11856 KB |
Output is correct |
37 |
Correct |
3 ms |
11600 KB |
Output is correct |
38 |
Correct |
3 ms |
11600 KB |
Output is correct |
39 |
Correct |
4 ms |
11600 KB |
Output is correct |
40 |
Correct |
3 ms |
11856 KB |
Output is correct |
41 |
Correct |
4 ms |
11768 KB |
Output is correct |
42 |
Correct |
3 ms |
11600 KB |
Output is correct |
43 |
Correct |
3 ms |
11600 KB |
Output is correct |
44 |
Correct |
3 ms |
11600 KB |
Output is correct |
45 |
Correct |
3 ms |
11600 KB |
Output is correct |
46 |
Correct |
2 ms |
11628 KB |
Output is correct |
47 |
Correct |
3 ms |
11600 KB |
Output is correct |
48 |
Correct |
4 ms |
11600 KB |
Output is correct |
49 |
Correct |
3 ms |
11600 KB |
Output is correct |
50 |
Correct |
3 ms |
11600 KB |
Output is correct |
51 |
Correct |
3 ms |
11600 KB |
Output is correct |
52 |
Correct |
3 ms |
11492 KB |
Output is correct |
53 |
Correct |
3 ms |
11600 KB |
Output is correct |
54 |
Correct |
3 ms |
11624 KB |
Output is correct |
55 |
Correct |
3 ms |
11600 KB |
Output is correct |
56 |
Correct |
3 ms |
11624 KB |
Output is correct |
57 |
Correct |
3 ms |
11600 KB |
Output is correct |
58 |
Correct |
3 ms |
11600 KB |
Output is correct |
59 |
Correct |
3 ms |
11600 KB |
Output is correct |
60 |
Correct |
3 ms |
11600 KB |
Output is correct |
61 |
Correct |
3 ms |
11600 KB |
Output is correct |
62 |
Correct |
3 ms |
11600 KB |
Output is correct |
63 |
Correct |
3 ms |
11600 KB |
Output is correct |
64 |
Correct |
4 ms |
11600 KB |
Output is correct |
65 |
Correct |
3 ms |
11600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
55 ms |
29412 KB |
Output is correct |
2 |
Correct |
53 ms |
29376 KB |
Output is correct |
3 |
Correct |
56 ms |
26052 KB |
Output is correct |
4 |
Correct |
49 ms |
27268 KB |
Output is correct |
5 |
Correct |
54 ms |
23256 KB |
Output is correct |
6 |
Correct |
51 ms |
24984 KB |
Output is correct |
7 |
Correct |
52 ms |
22864 KB |
Output is correct |
8 |
Correct |
50 ms |
23384 KB |
Output is correct |
9 |
Correct |
45 ms |
21316 KB |
Output is correct |
10 |
Correct |
45 ms |
21852 KB |
Output is correct |
11 |
Correct |
41 ms |
19536 KB |
Output is correct |
12 |
Correct |
38 ms |
19268 KB |
Output is correct |
13 |
Correct |
34 ms |
19148 KB |
Output is correct |
14 |
Correct |
35 ms |
18764 KB |
Output is correct |
15 |
Correct |
40 ms |
18144 KB |
Output is correct |
16 |
Correct |
28 ms |
17744 KB |
Output is correct |
17 |
Correct |
4 ms |
11992 KB |
Output is correct |
18 |
Correct |
4 ms |
11992 KB |
Output is correct |
19 |
Correct |
5 ms |
12160 KB |
Output is correct |
20 |
Correct |
4 ms |
11992 KB |
Output is correct |
21 |
Correct |
5 ms |
11984 KB |
Output is correct |
22 |
Correct |
5 ms |
11996 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
11600 KB |
Output is correct |
2 |
Correct |
3 ms |
11600 KB |
Output is correct |
3 |
Correct |
3 ms |
11600 KB |
Output is correct |
4 |
Correct |
3 ms |
11600 KB |
Output is correct |
5 |
Correct |
4 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11600 KB |
Output is correct |
7 |
Correct |
4 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
3 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11600 KB |
Output is correct |
11 |
Correct |
4 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
4 ms |
11600 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
4 ms |
11600 KB |
Output is correct |
16 |
Correct |
4 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
4 ms |
11600 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
4 ms |
11768 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
75 ms |
21120 KB |
Output is correct |
2 |
Correct |
59 ms |
21064 KB |
Output is correct |
3 |
Correct |
60 ms |
21224 KB |
Output is correct |
4 |
Correct |
56 ms |
21056 KB |
Output is correct |
5 |
Correct |
57 ms |
21232 KB |
Output is correct |
6 |
Correct |
63 ms |
29616 KB |
Output is correct |
7 |
Correct |
62 ms |
26816 KB |
Output is correct |
8 |
Correct |
68 ms |
25160 KB |
Output is correct |
9 |
Correct |
64 ms |
23792 KB |
Output is correct |
10 |
Correct |
55 ms |
21064 KB |
Output is correct |
11 |
Correct |
53 ms |
21064 KB |
Output is correct |
12 |
Correct |
52 ms |
21064 KB |
Output is correct |
13 |
Correct |
51 ms |
21064 KB |
Output is correct |
14 |
Correct |
63 ms |
20552 KB |
Output is correct |
15 |
Correct |
44 ms |
20048 KB |
Output is correct |
16 |
Correct |
49 ms |
17912 KB |
Output is correct |
17 |
Correct |
47 ms |
21696 KB |
Output is correct |
18 |
Correct |
42 ms |
21576 KB |
Output is correct |
19 |
Correct |
45 ms |
21796 KB |
Output is correct |
20 |
Correct |
41 ms |
21576 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
11600 KB |
Output is correct |
2 |
Correct |
4 ms |
11600 KB |
Output is correct |
3 |
Correct |
4 ms |
11600 KB |
Output is correct |
4 |
Correct |
4 ms |
11600 KB |
Output is correct |
5 |
Correct |
3 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11768 KB |
Output is correct |
7 |
Correct |
4 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
4 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11600 KB |
Output is correct |
11 |
Correct |
3 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
4 ms |
11768 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
4 ms |
11600 KB |
Output is correct |
16 |
Correct |
3 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
4 ms |
11600 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
3 ms |
11636 KB |
Output is correct |
21 |
Correct |
3 ms |
11636 KB |
Output is correct |
22 |
Correct |
3 ms |
11600 KB |
Output is correct |
23 |
Correct |
3 ms |
11600 KB |
Output is correct |
24 |
Correct |
3 ms |
11600 KB |
Output is correct |
25 |
Correct |
3 ms |
11600 KB |
Output is correct |
26 |
Correct |
3 ms |
11632 KB |
Output is correct |
27 |
Correct |
3 ms |
11600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
49 ms |
21172 KB |
Output is correct |
2 |
Correct |
54 ms |
20936 KB |
Output is correct |
3 |
Correct |
65 ms |
20552 KB |
Output is correct |
4 |
Correct |
53 ms |
21320 KB |
Output is correct |
5 |
Correct |
44 ms |
20500 KB |
Output is correct |
6 |
Correct |
42 ms |
20296 KB |
Output is correct |
7 |
Correct |
42 ms |
20188 KB |
Output is correct |
8 |
Correct |
51 ms |
19528 KB |
Output is correct |
9 |
Correct |
42 ms |
19792 KB |
Output is correct |
10 |
Correct |
45 ms |
19832 KB |
Output is correct |
11 |
Correct |
39 ms |
19792 KB |
Output is correct |
12 |
Correct |
47 ms |
19460 KB |
Output is correct |
13 |
Correct |
38 ms |
20048 KB |
Output is correct |
14 |
Correct |
51 ms |
22632 KB |
Output is correct |
15 |
Correct |
71 ms |
27844 KB |
Output is correct |
16 |
Correct |
72 ms |
25972 KB |
Output is correct |
17 |
Correct |
62 ms |
26316 KB |
Output is correct |
18 |
Correct |
68 ms |
24948 KB |
Output is correct |
19 |
Correct |
100 ms |
21288 KB |
Output is correct |
20 |
Correct |
54 ms |
21328 KB |
Output is correct |
21 |
Correct |
62 ms |
21324 KB |
Output is correct |
22 |
Correct |
62 ms |
20808 KB |
Output is correct |
23 |
Correct |
53 ms |
20296 KB |
Output is correct |
24 |
Correct |
66 ms |
22352 KB |
Output is correct |
25 |
Correct |
66 ms |
22276 KB |
Output is correct |
26 |
Correct |
54 ms |
21668 KB |
Output is correct |
27 |
Correct |
62 ms |
21752 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
11600 KB |
Output is correct |
2 |
Correct |
3 ms |
11600 KB |
Output is correct |
3 |
Correct |
3 ms |
11600 KB |
Output is correct |
4 |
Correct |
3 ms |
11392 KB |
Output is correct |
5 |
Correct |
3 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11600 KB |
Output is correct |
7 |
Correct |
3 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
4 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11628 KB |
Output is correct |
11 |
Correct |
3 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
3 ms |
11600 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
3 ms |
11600 KB |
Output is correct |
16 |
Correct |
3 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
3 ms |
11604 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
3 ms |
11632 KB |
Output is correct |
21 |
Correct |
3 ms |
11600 KB |
Output is correct |
22 |
Correct |
3 ms |
11600 KB |
Output is correct |
23 |
Correct |
4 ms |
11600 KB |
Output is correct |
24 |
Correct |
3 ms |
11600 KB |
Output is correct |
25 |
Correct |
3 ms |
11600 KB |
Output is correct |
26 |
Correct |
3 ms |
11544 KB |
Output is correct |
27 |
Correct |
2 ms |
11600 KB |
Output is correct |
28 |
Correct |
4 ms |
11600 KB |
Output is correct |
29 |
Correct |
4 ms |
11600 KB |
Output is correct |
30 |
Correct |
3 ms |
11600 KB |
Output is correct |
31 |
Correct |
3 ms |
11600 KB |
Output is correct |
32 |
Correct |
3 ms |
11624 KB |
Output is correct |
33 |
Correct |
3 ms |
11600 KB |
Output is correct |
34 |
Correct |
3 ms |
11628 KB |
Output is correct |
35 |
Correct |
3 ms |
11800 KB |
Output is correct |
36 |
Correct |
3 ms |
11856 KB |
Output is correct |
37 |
Correct |
3 ms |
11600 KB |
Output is correct |
38 |
Correct |
3 ms |
11600 KB |
Output is correct |
39 |
Correct |
4 ms |
11600 KB |
Output is correct |
40 |
Correct |
3 ms |
11856 KB |
Output is correct |
41 |
Correct |
4 ms |
11768 KB |
Output is correct |
42 |
Correct |
3 ms |
11600 KB |
Output is correct |
43 |
Correct |
3 ms |
11600 KB |
Output is correct |
44 |
Correct |
3 ms |
11600 KB |
Output is correct |
45 |
Correct |
3 ms |
11600 KB |
Output is correct |
46 |
Correct |
2 ms |
11628 KB |
Output is correct |
47 |
Correct |
3 ms |
11600 KB |
Output is correct |
48 |
Correct |
4 ms |
11600 KB |
Output is correct |
49 |
Correct |
3 ms |
11600 KB |
Output is correct |
50 |
Correct |
3 ms |
11600 KB |
Output is correct |
51 |
Correct |
3 ms |
11600 KB |
Output is correct |
52 |
Correct |
3 ms |
11492 KB |
Output is correct |
53 |
Correct |
3 ms |
11600 KB |
Output is correct |
54 |
Correct |
3 ms |
11624 KB |
Output is correct |
55 |
Correct |
3 ms |
11600 KB |
Output is correct |
56 |
Correct |
3 ms |
11624 KB |
Output is correct |
57 |
Correct |
3 ms |
11600 KB |
Output is correct |
58 |
Correct |
3 ms |
11600 KB |
Output is correct |
59 |
Correct |
3 ms |
11600 KB |
Output is correct |
60 |
Correct |
3 ms |
11600 KB |
Output is correct |
61 |
Correct |
3 ms |
11600 KB |
Output is correct |
62 |
Correct |
3 ms |
11600 KB |
Output is correct |
63 |
Correct |
3 ms |
11600 KB |
Output is correct |
64 |
Correct |
4 ms |
11600 KB |
Output is correct |
65 |
Correct |
3 ms |
11600 KB |
Output is correct |
66 |
Correct |
3 ms |
11856 KB |
Output is correct |
67 |
Correct |
3 ms |
11856 KB |
Output is correct |
68 |
Correct |
4 ms |
11600 KB |
Output is correct |
69 |
Correct |
3 ms |
11600 KB |
Output is correct |
70 |
Correct |
4 ms |
11600 KB |
Output is correct |
71 |
Correct |
3 ms |
11600 KB |
Output is correct |
72 |
Correct |
3 ms |
11636 KB |
Output is correct |
73 |
Correct |
4 ms |
11600 KB |
Output is correct |
74 |
Correct |
3 ms |
11600 KB |
Output is correct |
75 |
Correct |
3 ms |
11600 KB |
Output is correct |
76 |
Correct |
3 ms |
11600 KB |
Output is correct |
77 |
Correct |
3 ms |
11600 KB |
Output is correct |
78 |
Correct |
3 ms |
11600 KB |
Output is correct |
79 |
Correct |
4 ms |
11600 KB |
Output is correct |
80 |
Correct |
3 ms |
11600 KB |
Output is correct |
81 |
Correct |
3 ms |
11600 KB |
Output is correct |
82 |
Correct |
3 ms |
11600 KB |
Output is correct |
83 |
Correct |
3 ms |
11596 KB |
Output is correct |
84 |
Correct |
3 ms |
11600 KB |
Output is correct |
85 |
Correct |
3 ms |
11600 KB |
Output is correct |
86 |
Correct |
3 ms |
11600 KB |
Output is correct |
87 |
Correct |
3 ms |
11600 KB |
Output is correct |
88 |
Correct |
3 ms |
11600 KB |
Output is correct |
89 |
Correct |
4 ms |
11600 KB |
Output is correct |
90 |
Correct |
3 ms |
11600 KB |
Output is correct |
91 |
Correct |
3 ms |
11600 KB |
Output is correct |
92 |
Correct |
3 ms |
11600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
11600 KB |
Output is correct |
2 |
Correct |
3 ms |
11600 KB |
Output is correct |
3 |
Correct |
3 ms |
11600 KB |
Output is correct |
4 |
Correct |
3 ms |
11392 KB |
Output is correct |
5 |
Correct |
3 ms |
11600 KB |
Output is correct |
6 |
Correct |
3 ms |
11600 KB |
Output is correct |
7 |
Correct |
3 ms |
11600 KB |
Output is correct |
8 |
Correct |
3 ms |
11600 KB |
Output is correct |
9 |
Correct |
4 ms |
11600 KB |
Output is correct |
10 |
Correct |
3 ms |
11628 KB |
Output is correct |
11 |
Correct |
3 ms |
11600 KB |
Output is correct |
12 |
Correct |
3 ms |
11600 KB |
Output is correct |
13 |
Correct |
3 ms |
11600 KB |
Output is correct |
14 |
Correct |
3 ms |
11600 KB |
Output is correct |
15 |
Correct |
3 ms |
11600 KB |
Output is correct |
16 |
Correct |
3 ms |
11600 KB |
Output is correct |
17 |
Correct |
3 ms |
11600 KB |
Output is correct |
18 |
Correct |
3 ms |
11604 KB |
Output is correct |
19 |
Correct |
3 ms |
11600 KB |
Output is correct |
20 |
Correct |
3 ms |
11632 KB |
Output is correct |
21 |
Correct |
3 ms |
11600 KB |
Output is correct |
22 |
Correct |
3 ms |
11600 KB |
Output is correct |
23 |
Correct |
4 ms |
11600 KB |
Output is correct |
24 |
Correct |
3 ms |
11600 KB |
Output is correct |
25 |
Correct |
3 ms |
11600 KB |
Output is correct |
26 |
Correct |
3 ms |
11544 KB |
Output is correct |
27 |
Correct |
2 ms |
11600 KB |
Output is correct |
28 |
Correct |
4 ms |
11600 KB |
Output is correct |
29 |
Correct |
4 ms |
11600 KB |
Output is correct |
30 |
Correct |
3 ms |
11600 KB |
Output is correct |
31 |
Correct |
3 ms |
11600 KB |
Output is correct |
32 |
Correct |
3 ms |
11624 KB |
Output is correct |
33 |
Correct |
3 ms |
11600 KB |
Output is correct |
34 |
Correct |
3 ms |
11628 KB |
Output is correct |
35 |
Correct |
3 ms |
11800 KB |
Output is correct |
36 |
Correct |
3 ms |
11856 KB |
Output is correct |
37 |
Correct |
3 ms |
11600 KB |
Output is correct |
38 |
Correct |
3 ms |
11600 KB |
Output is correct |
39 |
Correct |
4 ms |
11600 KB |
Output is correct |
40 |
Correct |
3 ms |
11856 KB |
Output is correct |
41 |
Correct |
4 ms |
11768 KB |
Output is correct |
42 |
Correct |
3 ms |
11600 KB |
Output is correct |
43 |
Correct |
3 ms |
11600 KB |
Output is correct |
44 |
Correct |
3 ms |
11600 KB |
Output is correct |
45 |
Correct |
3 ms |
11600 KB |
Output is correct |
46 |
Correct |
2 ms |
11628 KB |
Output is correct |
47 |
Correct |
3 ms |
11600 KB |
Output is correct |
48 |
Correct |
4 ms |
11600 KB |
Output is correct |
49 |
Correct |
3 ms |
11600 KB |
Output is correct |
50 |
Correct |
3 ms |
11600 KB |
Output is correct |
51 |
Correct |
3 ms |
11600 KB |
Output is correct |
52 |
Correct |
3 ms |
11492 KB |
Output is correct |
53 |
Correct |
3 ms |
11600 KB |
Output is correct |
54 |
Correct |
3 ms |
11624 KB |
Output is correct |
55 |
Correct |
3 ms |
11600 KB |
Output is correct |
56 |
Correct |
3 ms |
11624 KB |
Output is correct |
57 |
Correct |
3 ms |
11600 KB |
Output is correct |
58 |
Correct |
3 ms |
11600 KB |
Output is correct |
59 |
Correct |
3 ms |
11600 KB |
Output is correct |
60 |
Correct |
3 ms |
11600 KB |
Output is correct |
61 |
Correct |
3 ms |
11600 KB |
Output is correct |
62 |
Correct |
3 ms |
11600 KB |
Output is correct |
63 |
Correct |
3 ms |
11600 KB |
Output is correct |
64 |
Correct |
4 ms |
11600 KB |
Output is correct |
65 |
Correct |
3 ms |
11600 KB |
Output is correct |
66 |
Correct |
55 ms |
29412 KB |
Output is correct |
67 |
Correct |
53 ms |
29376 KB |
Output is correct |
68 |
Correct |
56 ms |
26052 KB |
Output is correct |
69 |
Correct |
49 ms |
27268 KB |
Output is correct |
70 |
Correct |
54 ms |
23256 KB |
Output is correct |
71 |
Correct |
51 ms |
24984 KB |
Output is correct |
72 |
Correct |
52 ms |
22864 KB |
Output is correct |
73 |
Correct |
50 ms |
23384 KB |
Output is correct |
74 |
Correct |
45 ms |
21316 KB |
Output is correct |
75 |
Correct |
45 ms |
21852 KB |
Output is correct |
76 |
Correct |
41 ms |
19536 KB |
Output is correct |
77 |
Correct |
38 ms |
19268 KB |
Output is correct |
78 |
Correct |
34 ms |
19148 KB |
Output is correct |
79 |
Correct |
35 ms |
18764 KB |
Output is correct |
80 |
Correct |
40 ms |
18144 KB |
Output is correct |
81 |
Correct |
28 ms |
17744 KB |
Output is correct |
82 |
Correct |
4 ms |
11992 KB |
Output is correct |
83 |
Correct |
4 ms |
11992 KB |
Output is correct |
84 |
Correct |
5 ms |
12160 KB |
Output is correct |
85 |
Correct |
4 ms |
11992 KB |
Output is correct |
86 |
Correct |
5 ms |
11984 KB |
Output is correct |
87 |
Correct |
5 ms |
11996 KB |
Output is correct |
88 |
Correct |
3 ms |
11600 KB |
Output is correct |
89 |
Correct |
3 ms |
11600 KB |
Output is correct |
90 |
Correct |
3 ms |
11600 KB |
Output is correct |
91 |
Correct |
3 ms |
11600 KB |
Output is correct |
92 |
Correct |
4 ms |
11600 KB |
Output is correct |
93 |
Correct |
3 ms |
11600 KB |
Output is correct |
94 |
Correct |
4 ms |
11600 KB |
Output is correct |
95 |
Correct |
3 ms |
11600 KB |
Output is correct |
96 |
Correct |
3 ms |
11600 KB |
Output is correct |
97 |
Correct |
3 ms |
11600 KB |
Output is correct |
98 |
Correct |
4 ms |
11600 KB |
Output is correct |
99 |
Correct |
3 ms |
11600 KB |
Output is correct |
100 |
Correct |
4 ms |
11600 KB |
Output is correct |
101 |
Correct |
3 ms |
11600 KB |
Output is correct |
102 |
Correct |
4 ms |
11600 KB |
Output is correct |
103 |
Correct |
4 ms |
11600 KB |
Output is correct |
104 |
Correct |
3 ms |
11600 KB |
Output is correct |
105 |
Correct |
4 ms |
11600 KB |
Output is correct |
106 |
Correct |
3 ms |
11600 KB |
Output is correct |
107 |
Correct |
4 ms |
11768 KB |
Output is correct |
108 |
Correct |
75 ms |
21120 KB |
Output is correct |
109 |
Correct |
59 ms |
21064 KB |
Output is correct |
110 |
Correct |
60 ms |
21224 KB |
Output is correct |
111 |
Correct |
56 ms |
21056 KB |
Output is correct |
112 |
Correct |
57 ms |
21232 KB |
Output is correct |
113 |
Correct |
63 ms |
29616 KB |
Output is correct |
114 |
Correct |
62 ms |
26816 KB |
Output is correct |
115 |
Correct |
68 ms |
25160 KB |
Output is correct |
116 |
Correct |
64 ms |
23792 KB |
Output is correct |
117 |
Correct |
55 ms |
21064 KB |
Output is correct |
118 |
Correct |
53 ms |
21064 KB |
Output is correct |
119 |
Correct |
52 ms |
21064 KB |
Output is correct |
120 |
Correct |
51 ms |
21064 KB |
Output is correct |
121 |
Correct |
63 ms |
20552 KB |
Output is correct |
122 |
Correct |
44 ms |
20048 KB |
Output is correct |
123 |
Correct |
49 ms |
17912 KB |
Output is correct |
124 |
Correct |
47 ms |
21696 KB |
Output is correct |
125 |
Correct |
42 ms |
21576 KB |
Output is correct |
126 |
Correct |
45 ms |
21796 KB |
Output is correct |
127 |
Correct |
41 ms |
21576 KB |
Output is correct |
128 |
Correct |
4 ms |
11600 KB |
Output is correct |
129 |
Correct |
4 ms |
11600 KB |
Output is correct |
130 |
Correct |
4 ms |
11600 KB |
Output is correct |
131 |
Correct |
4 ms |
11600 KB |
Output is correct |
132 |
Correct |
3 ms |
11600 KB |
Output is correct |
133 |
Correct |
3 ms |
11768 KB |
Output is correct |
134 |
Correct |
4 ms |
11600 KB |
Output is correct |
135 |
Correct |
3 ms |
11600 KB |
Output is correct |
136 |
Correct |
4 ms |
11600 KB |
Output is correct |
137 |
Correct |
3 ms |
11600 KB |
Output is correct |
138 |
Correct |
3 ms |
11600 KB |
Output is correct |
139 |
Correct |
3 ms |
11600 KB |
Output is correct |
140 |
Correct |
4 ms |
11768 KB |
Output is correct |
141 |
Correct |
3 ms |
11600 KB |
Output is correct |
142 |
Correct |
4 ms |
11600 KB |
Output is correct |
143 |
Correct |
3 ms |
11600 KB |
Output is correct |
144 |
Correct |
3 ms |
11600 KB |
Output is correct |
145 |
Correct |
4 ms |
11600 KB |
Output is correct |
146 |
Correct |
3 ms |
11600 KB |
Output is correct |
147 |
Correct |
3 ms |
11636 KB |
Output is correct |
148 |
Correct |
3 ms |
11636 KB |
Output is correct |
149 |
Correct |
3 ms |
11600 KB |
Output is correct |
150 |
Correct |
3 ms |
11600 KB |
Output is correct |
151 |
Correct |
3 ms |
11600 KB |
Output is correct |
152 |
Correct |
3 ms |
11600 KB |
Output is correct |
153 |
Correct |
3 ms |
11632 KB |
Output is correct |
154 |
Correct |
3 ms |
11600 KB |
Output is correct |
155 |
Correct |
49 ms |
21172 KB |
Output is correct |
156 |
Correct |
54 ms |
20936 KB |
Output is correct |
157 |
Correct |
65 ms |
20552 KB |
Output is correct |
158 |
Correct |
53 ms |
21320 KB |
Output is correct |
159 |
Correct |
44 ms |
20500 KB |
Output is correct |
160 |
Correct |
42 ms |
20296 KB |
Output is correct |
161 |
Correct |
42 ms |
20188 KB |
Output is correct |
162 |
Correct |
51 ms |
19528 KB |
Output is correct |
163 |
Correct |
42 ms |
19792 KB |
Output is correct |
164 |
Correct |
45 ms |
19832 KB |
Output is correct |
165 |
Correct |
39 ms |
19792 KB |
Output is correct |
166 |
Correct |
47 ms |
19460 KB |
Output is correct |
167 |
Correct |
38 ms |
20048 KB |
Output is correct |
168 |
Correct |
51 ms |
22632 KB |
Output is correct |
169 |
Correct |
71 ms |
27844 KB |
Output is correct |
170 |
Correct |
72 ms |
25972 KB |
Output is correct |
171 |
Correct |
62 ms |
26316 KB |
Output is correct |
172 |
Correct |
68 ms |
24948 KB |
Output is correct |
173 |
Correct |
100 ms |
21288 KB |
Output is correct |
174 |
Correct |
54 ms |
21328 KB |
Output is correct |
175 |
Correct |
62 ms |
21324 KB |
Output is correct |
176 |
Correct |
62 ms |
20808 KB |
Output is correct |
177 |
Correct |
53 ms |
20296 KB |
Output is correct |
178 |
Correct |
66 ms |
22352 KB |
Output is correct |
179 |
Correct |
66 ms |
22276 KB |
Output is correct |
180 |
Correct |
54 ms |
21668 KB |
Output is correct |
181 |
Correct |
62 ms |
21752 KB |
Output is correct |
182 |
Correct |
3 ms |
11856 KB |
Output is correct |
183 |
Correct |
3 ms |
11856 KB |
Output is correct |
184 |
Correct |
4 ms |
11600 KB |
Output is correct |
185 |
Correct |
3 ms |
11600 KB |
Output is correct |
186 |
Correct |
4 ms |
11600 KB |
Output is correct |
187 |
Correct |
3 ms |
11600 KB |
Output is correct |
188 |
Correct |
3 ms |
11636 KB |
Output is correct |
189 |
Correct |
4 ms |
11600 KB |
Output is correct |
190 |
Correct |
3 ms |
11600 KB |
Output is correct |
191 |
Correct |
3 ms |
11600 KB |
Output is correct |
192 |
Correct |
3 ms |
11600 KB |
Output is correct |
193 |
Correct |
3 ms |
11600 KB |
Output is correct |
194 |
Correct |
3 ms |
11600 KB |
Output is correct |
195 |
Correct |
4 ms |
11600 KB |
Output is correct |
196 |
Correct |
3 ms |
11600 KB |
Output is correct |
197 |
Correct |
3 ms |
11600 KB |
Output is correct |
198 |
Correct |
3 ms |
11600 KB |
Output is correct |
199 |
Correct |
3 ms |
11596 KB |
Output is correct |
200 |
Correct |
3 ms |
11600 KB |
Output is correct |
201 |
Correct |
3 ms |
11600 KB |
Output is correct |
202 |
Correct |
3 ms |
11600 KB |
Output is correct |
203 |
Correct |
3 ms |
11600 KB |
Output is correct |
204 |
Correct |
3 ms |
11600 KB |
Output is correct |
205 |
Correct |
4 ms |
11600 KB |
Output is correct |
206 |
Correct |
3 ms |
11600 KB |
Output is correct |
207 |
Correct |
3 ms |
11600 KB |
Output is correct |
208 |
Correct |
3 ms |
11600 KB |
Output is correct |
209 |
Correct |
8 ms |
11984 KB |
Output is correct |
210 |
Correct |
35 ms |
17860 KB |
Output is correct |
211 |
Correct |
66 ms |
22724 KB |
Output is correct |
212 |
Correct |
80 ms |
25888 KB |
Output is correct |
213 |
Correct |
85 ms |
28356 KB |
Output is correct |
214 |
Correct |
37 ms |
20304 KB |
Output is correct |
215 |
Correct |
48 ms |
20360 KB |
Output is correct |
216 |
Correct |
65 ms |
22072 KB |
Output is correct |
217 |
Correct |
58 ms |
21028 KB |
Output is correct |
218 |
Correct |
47 ms |
20048 KB |
Output is correct |
219 |
Correct |
42 ms |
19784 KB |
Output is correct |
220 |
Correct |
45 ms |
19792 KB |
Output is correct |
221 |
Correct |
46 ms |
19792 KB |
Output is correct |
222 |
Correct |
51 ms |
21300 KB |
Output is correct |
223 |
Correct |
89 ms |
23880 KB |
Output is correct |
224 |
Correct |
59 ms |
23112 KB |
Output is correct |
225 |
Correct |
71 ms |
20808 KB |
Output is correct |
226 |
Correct |
54 ms |
20932 KB |
Output is correct |
227 |
Correct |
58 ms |
20768 KB |
Output is correct |
228 |
Correct |
50 ms |
20372 KB |
Output is correct |
229 |
Correct |
49 ms |
20080 KB |
Output is correct |
230 |
Correct |
50 ms |
21320 KB |
Output is correct |
231 |
Correct |
79 ms |
21320 KB |
Output is correct |