#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define ull unsigned long long
#define pii pair<int,int>
#define pll pair<long long, long long>
#define fi first
#define se second
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define TASKNAME "NAME"
void init()
{
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
///freopen(TASKNAME".INP","r",stdin); freopen(TASKNAME".OUT","w",stdout);
}
const int SZ = 1e6+5;
const ll INF = INT_MAX / 2, MOD = 1e9+7, INFLL = 2e18;
const double epsilon = 1e-3;
int n,m, num[SZ], low[SZ], timer = 0, cnt = 0, bcc = 0, s[SZ];
vector<int> adj[SZ], adj2[SZ], vec;
ll res = 0;
void dfs(int u, int prev)
{
num[u] = low[u] = ++timer;
vec.pb(u);
++cnt;
for(int v : adj[u])
{
if(v == prev) continue;
if(!num[v])
{
dfs(v, u);
low[u] = min(low[u], low[v]);
if(low[v] >= num[u])
{
++bcc;
adj2[u].pb(bcc + n);
int k = 0;
do
{
k = vec.back();
vec.pop_back();
adj2[bcc + n].pb(k);
} while(k != v);
}
} else
{
low[u] = min(low[u], num[v]);
}
}
}
void dfs2(int u)
{
s[u] = (u <= n);
for(int v : adj2[u])
{
dfs2(v);
s[u] += s[v];
if(u > n) res -= 1LL*adj2[u].size() * s[v] * (s[v] - 1);
}
if(u > n) res -= 1LL*adj2[u].size() * (cnt - s[u]) * (cnt - s[u] - 1);
}
int main()
{
init();
cin >> n >> m;
for(int i = 1; i <= m; i++)
{
int u,v;
cin >> u >> v;
adj[u].push_back(v);
adj[v].push_back(u);
}
for(int i = 1; i <= n; i++)
{
if(!num[i])
{
cnt = 0;
dfs(i, i);
res += 1LL*cnt*(cnt-1)*(cnt-2);
dfs2(i);
}
}
cout << res;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
16 ms |
49756 KB |
Output is correct |
2 |
Correct |
11 ms |
49756 KB |
Output is correct |
3 |
Correct |
11 ms |
49820 KB |
Output is correct |
4 |
Correct |
10 ms |
49752 KB |
Output is correct |
5 |
Correct |
11 ms |
49752 KB |
Output is correct |
6 |
Correct |
11 ms |
49756 KB |
Output is correct |
7 |
Correct |
11 ms |
49756 KB |
Output is correct |
8 |
Correct |
10 ms |
49756 KB |
Output is correct |
9 |
Correct |
11 ms |
49752 KB |
Output is correct |
10 |
Correct |
11 ms |
49756 KB |
Output is correct |
11 |
Correct |
10 ms |
49756 KB |
Output is correct |
12 |
Correct |
11 ms |
49848 KB |
Output is correct |
13 |
Correct |
10 ms |
49756 KB |
Output is correct |
14 |
Correct |
10 ms |
49756 KB |
Output is correct |
15 |
Correct |
11 ms |
49756 KB |
Output is correct |
16 |
Correct |
10 ms |
49752 KB |
Output is correct |
17 |
Correct |
10 ms |
49840 KB |
Output is correct |
18 |
Correct |
11 ms |
49756 KB |
Output is correct |
19 |
Correct |
11 ms |
49820 KB |
Output is correct |
20 |
Correct |
11 ms |
49756 KB |
Output is correct |
21 |
Correct |
12 ms |
49756 KB |
Output is correct |
22 |
Correct |
11 ms |
49756 KB |
Output is correct |
23 |
Correct |
11 ms |
49756 KB |
Output is correct |
24 |
Correct |
12 ms |
49752 KB |
Output is correct |
25 |
Correct |
10 ms |
49824 KB |
Output is correct |
26 |
Correct |
11 ms |
49896 KB |
Output is correct |
27 |
Correct |
11 ms |
49888 KB |
Output is correct |
28 |
Correct |
11 ms |
49756 KB |
Output is correct |
29 |
Correct |
10 ms |
49904 KB |
Output is correct |
30 |
Correct |
11 ms |
49756 KB |
Output is correct |
31 |
Correct |
10 ms |
49756 KB |
Output is correct |
32 |
Correct |
11 ms |
49896 KB |
Output is correct |
33 |
Correct |
11 ms |
49756 KB |
Output is correct |
34 |
Correct |
11 ms |
49756 KB |
Output is correct |
35 |
Correct |
11 ms |
49888 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
16 ms |
49756 KB |
Output is correct |
2 |
Correct |
11 ms |
49756 KB |
Output is correct |
3 |
Correct |
11 ms |
49820 KB |
Output is correct |
4 |
Correct |
10 ms |
49752 KB |
Output is correct |
5 |
Correct |
11 ms |
49752 KB |
Output is correct |
6 |
Correct |
11 ms |
49756 KB |
Output is correct |
7 |
Correct |
11 ms |
49756 KB |
Output is correct |
8 |
Correct |
10 ms |
49756 KB |
Output is correct |
9 |
Correct |
11 ms |
49752 KB |
Output is correct |
10 |
Correct |
11 ms |
49756 KB |
Output is correct |
11 |
Correct |
10 ms |
49756 KB |
Output is correct |
12 |
Correct |
11 ms |
49848 KB |
Output is correct |
13 |
Correct |
10 ms |
49756 KB |
Output is correct |
14 |
Correct |
10 ms |
49756 KB |
Output is correct |
15 |
Correct |
11 ms |
49756 KB |
Output is correct |
16 |
Correct |
10 ms |
49752 KB |
Output is correct |
17 |
Correct |
10 ms |
49840 KB |
Output is correct |
18 |
Correct |
11 ms |
49756 KB |
Output is correct |
19 |
Correct |
11 ms |
49820 KB |
Output is correct |
20 |
Correct |
11 ms |
49756 KB |
Output is correct |
21 |
Correct |
12 ms |
49756 KB |
Output is correct |
22 |
Correct |
11 ms |
49756 KB |
Output is correct |
23 |
Correct |
11 ms |
49756 KB |
Output is correct |
24 |
Correct |
12 ms |
49752 KB |
Output is correct |
25 |
Correct |
10 ms |
49824 KB |
Output is correct |
26 |
Correct |
11 ms |
49896 KB |
Output is correct |
27 |
Correct |
11 ms |
49888 KB |
Output is correct |
28 |
Correct |
11 ms |
49756 KB |
Output is correct |
29 |
Correct |
10 ms |
49904 KB |
Output is correct |
30 |
Correct |
11 ms |
49756 KB |
Output is correct |
31 |
Correct |
10 ms |
49756 KB |
Output is correct |
32 |
Correct |
11 ms |
49896 KB |
Output is correct |
33 |
Correct |
11 ms |
49756 KB |
Output is correct |
34 |
Correct |
11 ms |
49756 KB |
Output is correct |
35 |
Correct |
11 ms |
49888 KB |
Output is correct |
36 |
Correct |
11 ms |
49756 KB |
Output is correct |
37 |
Correct |
10 ms |
49756 KB |
Output is correct |
38 |
Correct |
11 ms |
49756 KB |
Output is correct |
39 |
Correct |
11 ms |
49756 KB |
Output is correct |
40 |
Correct |
11 ms |
49756 KB |
Output is correct |
41 |
Correct |
11 ms |
49756 KB |
Output is correct |
42 |
Correct |
11 ms |
49756 KB |
Output is correct |
43 |
Correct |
11 ms |
49884 KB |
Output is correct |
44 |
Correct |
10 ms |
49756 KB |
Output is correct |
45 |
Correct |
11 ms |
49892 KB |
Output is correct |
46 |
Correct |
11 ms |
49752 KB |
Output is correct |
47 |
Correct |
12 ms |
49756 KB |
Output is correct |
48 |
Correct |
10 ms |
49756 KB |
Output is correct |
49 |
Correct |
11 ms |
49756 KB |
Output is correct |
50 |
Correct |
11 ms |
49864 KB |
Output is correct |
51 |
Correct |
10 ms |
49752 KB |
Output is correct |
52 |
Correct |
11 ms |
49752 KB |
Output is correct |
53 |
Correct |
10 ms |
49756 KB |
Output is correct |
54 |
Correct |
11 ms |
49848 KB |
Output is correct |
55 |
Correct |
11 ms |
49884 KB |
Output is correct |
56 |
Correct |
10 ms |
49756 KB |
Output is correct |
57 |
Correct |
11 ms |
49756 KB |
Output is correct |
58 |
Correct |
11 ms |
49804 KB |
Output is correct |
59 |
Correct |
11 ms |
49756 KB |
Output is correct |
60 |
Correct |
10 ms |
49752 KB |
Output is correct |
61 |
Correct |
11 ms |
49756 KB |
Output is correct |
62 |
Correct |
10 ms |
49844 KB |
Output is correct |
63 |
Correct |
11 ms |
49756 KB |
Output is correct |
64 |
Correct |
10 ms |
49908 KB |
Output is correct |
65 |
Correct |
11 ms |
49756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
67016 KB |
Output is correct |
2 |
Correct |
53 ms |
66676 KB |
Output is correct |
3 |
Correct |
54 ms |
66644 KB |
Output is correct |
4 |
Correct |
54 ms |
67532 KB |
Output is correct |
5 |
Correct |
49 ms |
63252 KB |
Output is correct |
6 |
Correct |
59 ms |
65512 KB |
Output is correct |
7 |
Correct |
58 ms |
63884 KB |
Output is correct |
8 |
Correct |
60 ms |
64688 KB |
Output is correct |
9 |
Correct |
53 ms |
62032 KB |
Output is correct |
10 |
Correct |
52 ms |
62036 KB |
Output is correct |
11 |
Correct |
44 ms |
59536 KB |
Output is correct |
12 |
Correct |
44 ms |
59220 KB |
Output is correct |
13 |
Correct |
54 ms |
59532 KB |
Output is correct |
14 |
Correct |
42 ms |
58960 KB |
Output is correct |
15 |
Correct |
36 ms |
58064 KB |
Output is correct |
16 |
Correct |
35 ms |
57876 KB |
Output is correct |
17 |
Correct |
13 ms |
50916 KB |
Output is correct |
18 |
Correct |
12 ms |
50916 KB |
Output is correct |
19 |
Correct |
12 ms |
50916 KB |
Output is correct |
20 |
Correct |
12 ms |
50796 KB |
Output is correct |
21 |
Correct |
13 ms |
50912 KB |
Output is correct |
22 |
Correct |
12 ms |
50912 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
49752 KB |
Output is correct |
2 |
Correct |
11 ms |
49992 KB |
Output is correct |
3 |
Correct |
11 ms |
49756 KB |
Output is correct |
4 |
Correct |
11 ms |
49904 KB |
Output is correct |
5 |
Correct |
11 ms |
50008 KB |
Output is correct |
6 |
Correct |
11 ms |
50012 KB |
Output is correct |
7 |
Correct |
11 ms |
49896 KB |
Output is correct |
8 |
Correct |
11 ms |
50012 KB |
Output is correct |
9 |
Correct |
11 ms |
50012 KB |
Output is correct |
10 |
Correct |
11 ms |
49752 KB |
Output is correct |
11 |
Correct |
11 ms |
49752 KB |
Output is correct |
12 |
Correct |
11 ms |
49860 KB |
Output is correct |
13 |
Correct |
11 ms |
49756 KB |
Output is correct |
14 |
Correct |
12 ms |
49756 KB |
Output is correct |
15 |
Correct |
11 ms |
49880 KB |
Output is correct |
16 |
Correct |
11 ms |
49756 KB |
Output is correct |
17 |
Correct |
11 ms |
49756 KB |
Output is correct |
18 |
Correct |
11 ms |
49900 KB |
Output is correct |
19 |
Correct |
11 ms |
49756 KB |
Output is correct |
20 |
Correct |
12 ms |
49752 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
55 ms |
61524 KB |
Output is correct |
2 |
Correct |
55 ms |
61392 KB |
Output is correct |
3 |
Correct |
55 ms |
61500 KB |
Output is correct |
4 |
Correct |
60 ms |
61776 KB |
Output is correct |
5 |
Correct |
54 ms |
61436 KB |
Output is correct |
6 |
Correct |
65 ms |
71652 KB |
Output is correct |
7 |
Correct |
63 ms |
67812 KB |
Output is correct |
8 |
Correct |
62 ms |
66384 KB |
Output is correct |
9 |
Correct |
67 ms |
64788 KB |
Output is correct |
10 |
Correct |
59 ms |
61508 KB |
Output is correct |
11 |
Correct |
55 ms |
61560 KB |
Output is correct |
12 |
Correct |
55 ms |
61332 KB |
Output is correct |
13 |
Correct |
54 ms |
61476 KB |
Output is correct |
14 |
Correct |
51 ms |
61032 KB |
Output is correct |
15 |
Correct |
46 ms |
60496 KB |
Output is correct |
16 |
Correct |
35 ms |
58176 KB |
Output is correct |
17 |
Correct |
40 ms |
60624 KB |
Output is correct |
18 |
Correct |
40 ms |
60492 KB |
Output is correct |
19 |
Correct |
44 ms |
60872 KB |
Output is correct |
20 |
Correct |
43 ms |
60452 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
49756 KB |
Output is correct |
2 |
Correct |
11 ms |
49756 KB |
Output is correct |
3 |
Correct |
11 ms |
49992 KB |
Output is correct |
4 |
Correct |
11 ms |
49844 KB |
Output is correct |
5 |
Correct |
11 ms |
49848 KB |
Output is correct |
6 |
Correct |
11 ms |
49756 KB |
Output is correct |
7 |
Correct |
11 ms |
49756 KB |
Output is correct |
8 |
Correct |
11 ms |
49756 KB |
Output is correct |
9 |
Correct |
12 ms |
49756 KB |
Output is correct |
10 |
Correct |
11 ms |
49756 KB |
Output is correct |
11 |
Correct |
12 ms |
49980 KB |
Output is correct |
12 |
Correct |
11 ms |
50012 KB |
Output is correct |
13 |
Correct |
11 ms |
50008 KB |
Output is correct |
14 |
Correct |
12 ms |
50012 KB |
Output is correct |
15 |
Correct |
11 ms |
50012 KB |
Output is correct |
16 |
Correct |
11 ms |
49980 KB |
Output is correct |
17 |
Correct |
11 ms |
49756 KB |
Output is correct |
18 |
Correct |
12 ms |
49756 KB |
Output is correct |
19 |
Correct |
11 ms |
49756 KB |
Output is correct |
20 |
Correct |
11 ms |
49868 KB |
Output is correct |
21 |
Correct |
11 ms |
49892 KB |
Output is correct |
22 |
Correct |
11 ms |
49752 KB |
Output is correct |
23 |
Correct |
11 ms |
49896 KB |
Output is correct |
24 |
Correct |
11 ms |
49756 KB |
Output is correct |
25 |
Correct |
11 ms |
49852 KB |
Output is correct |
26 |
Correct |
11 ms |
49924 KB |
Output is correct |
27 |
Correct |
10 ms |
49756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
56 ms |
61524 KB |
Output is correct |
2 |
Correct |
58 ms |
61776 KB |
Output is correct |
3 |
Correct |
60 ms |
61268 KB |
Output is correct |
4 |
Correct |
67 ms |
60780 KB |
Output is correct |
5 |
Correct |
52 ms |
58960 KB |
Output is correct |
6 |
Correct |
51 ms |
58448 KB |
Output is correct |
7 |
Correct |
47 ms |
58192 KB |
Output is correct |
8 |
Correct |
46 ms |
57936 KB |
Output is correct |
9 |
Correct |
55 ms |
57924 KB |
Output is correct |
10 |
Correct |
44 ms |
57684 KB |
Output is correct |
11 |
Correct |
43 ms |
55380 KB |
Output is correct |
12 |
Correct |
43 ms |
55380 KB |
Output is correct |
13 |
Correct |
43 ms |
55636 KB |
Output is correct |
14 |
Correct |
42 ms |
58344 KB |
Output is correct |
15 |
Correct |
65 ms |
67764 KB |
Output is correct |
16 |
Correct |
61 ms |
65476 KB |
Output is correct |
17 |
Correct |
64 ms |
65996 KB |
Output is correct |
18 |
Correct |
59 ms |
64336 KB |
Output is correct |
19 |
Correct |
59 ms |
60244 KB |
Output is correct |
20 |
Correct |
58 ms |
60244 KB |
Output is correct |
21 |
Correct |
55 ms |
60120 KB |
Output is correct |
22 |
Correct |
50 ms |
59472 KB |
Output is correct |
23 |
Correct |
50 ms |
58964 KB |
Output is correct |
24 |
Correct |
51 ms |
60984 KB |
Output is correct |
25 |
Correct |
53 ms |
61012 KB |
Output is correct |
26 |
Correct |
50 ms |
60364 KB |
Output is correct |
27 |
Correct |
54 ms |
60244 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
16 ms |
49756 KB |
Output is correct |
2 |
Correct |
11 ms |
49756 KB |
Output is correct |
3 |
Correct |
11 ms |
49820 KB |
Output is correct |
4 |
Correct |
10 ms |
49752 KB |
Output is correct |
5 |
Correct |
11 ms |
49752 KB |
Output is correct |
6 |
Correct |
11 ms |
49756 KB |
Output is correct |
7 |
Correct |
11 ms |
49756 KB |
Output is correct |
8 |
Correct |
10 ms |
49756 KB |
Output is correct |
9 |
Correct |
11 ms |
49752 KB |
Output is correct |
10 |
Correct |
11 ms |
49756 KB |
Output is correct |
11 |
Correct |
10 ms |
49756 KB |
Output is correct |
12 |
Correct |
11 ms |
49848 KB |
Output is correct |
13 |
Correct |
10 ms |
49756 KB |
Output is correct |
14 |
Correct |
10 ms |
49756 KB |
Output is correct |
15 |
Correct |
11 ms |
49756 KB |
Output is correct |
16 |
Correct |
10 ms |
49752 KB |
Output is correct |
17 |
Correct |
10 ms |
49840 KB |
Output is correct |
18 |
Correct |
11 ms |
49756 KB |
Output is correct |
19 |
Correct |
11 ms |
49820 KB |
Output is correct |
20 |
Correct |
11 ms |
49756 KB |
Output is correct |
21 |
Correct |
12 ms |
49756 KB |
Output is correct |
22 |
Correct |
11 ms |
49756 KB |
Output is correct |
23 |
Correct |
11 ms |
49756 KB |
Output is correct |
24 |
Correct |
12 ms |
49752 KB |
Output is correct |
25 |
Correct |
10 ms |
49824 KB |
Output is correct |
26 |
Correct |
11 ms |
49896 KB |
Output is correct |
27 |
Correct |
11 ms |
49888 KB |
Output is correct |
28 |
Correct |
11 ms |
49756 KB |
Output is correct |
29 |
Correct |
10 ms |
49904 KB |
Output is correct |
30 |
Correct |
11 ms |
49756 KB |
Output is correct |
31 |
Correct |
10 ms |
49756 KB |
Output is correct |
32 |
Correct |
11 ms |
49896 KB |
Output is correct |
33 |
Correct |
11 ms |
49756 KB |
Output is correct |
34 |
Correct |
11 ms |
49756 KB |
Output is correct |
35 |
Correct |
11 ms |
49888 KB |
Output is correct |
36 |
Correct |
11 ms |
49756 KB |
Output is correct |
37 |
Correct |
10 ms |
49756 KB |
Output is correct |
38 |
Correct |
11 ms |
49756 KB |
Output is correct |
39 |
Correct |
11 ms |
49756 KB |
Output is correct |
40 |
Correct |
11 ms |
49756 KB |
Output is correct |
41 |
Correct |
11 ms |
49756 KB |
Output is correct |
42 |
Correct |
11 ms |
49756 KB |
Output is correct |
43 |
Correct |
11 ms |
49884 KB |
Output is correct |
44 |
Correct |
10 ms |
49756 KB |
Output is correct |
45 |
Correct |
11 ms |
49892 KB |
Output is correct |
46 |
Correct |
11 ms |
49752 KB |
Output is correct |
47 |
Correct |
12 ms |
49756 KB |
Output is correct |
48 |
Correct |
10 ms |
49756 KB |
Output is correct |
49 |
Correct |
11 ms |
49756 KB |
Output is correct |
50 |
Correct |
11 ms |
49864 KB |
Output is correct |
51 |
Correct |
10 ms |
49752 KB |
Output is correct |
52 |
Correct |
11 ms |
49752 KB |
Output is correct |
53 |
Correct |
10 ms |
49756 KB |
Output is correct |
54 |
Correct |
11 ms |
49848 KB |
Output is correct |
55 |
Correct |
11 ms |
49884 KB |
Output is correct |
56 |
Correct |
10 ms |
49756 KB |
Output is correct |
57 |
Correct |
11 ms |
49756 KB |
Output is correct |
58 |
Correct |
11 ms |
49804 KB |
Output is correct |
59 |
Correct |
11 ms |
49756 KB |
Output is correct |
60 |
Correct |
10 ms |
49752 KB |
Output is correct |
61 |
Correct |
11 ms |
49756 KB |
Output is correct |
62 |
Correct |
10 ms |
49844 KB |
Output is correct |
63 |
Correct |
11 ms |
49756 KB |
Output is correct |
64 |
Correct |
10 ms |
49908 KB |
Output is correct |
65 |
Correct |
11 ms |
49756 KB |
Output is correct |
66 |
Correct |
10 ms |
49756 KB |
Output is correct |
67 |
Correct |
11 ms |
49964 KB |
Output is correct |
68 |
Correct |
11 ms |
49756 KB |
Output is correct |
69 |
Correct |
11 ms |
50012 KB |
Output is correct |
70 |
Correct |
11 ms |
49952 KB |
Output is correct |
71 |
Correct |
11 ms |
49756 KB |
Output is correct |
72 |
Correct |
11 ms |
49868 KB |
Output is correct |
73 |
Correct |
11 ms |
49756 KB |
Output is correct |
74 |
Correct |
11 ms |
49752 KB |
Output is correct |
75 |
Correct |
12 ms |
50260 KB |
Output is correct |
76 |
Correct |
10 ms |
49756 KB |
Output is correct |
77 |
Correct |
11 ms |
49896 KB |
Output is correct |
78 |
Correct |
11 ms |
49756 KB |
Output is correct |
79 |
Correct |
11 ms |
49900 KB |
Output is correct |
80 |
Correct |
11 ms |
49892 KB |
Output is correct |
81 |
Correct |
11 ms |
49756 KB |
Output is correct |
82 |
Correct |
11 ms |
50028 KB |
Output is correct |
83 |
Correct |
11 ms |
49828 KB |
Output is correct |
84 |
Correct |
11 ms |
49756 KB |
Output is correct |
85 |
Correct |
11 ms |
49756 KB |
Output is correct |
86 |
Correct |
11 ms |
49824 KB |
Output is correct |
87 |
Correct |
11 ms |
49756 KB |
Output is correct |
88 |
Correct |
11 ms |
49752 KB |
Output is correct |
89 |
Correct |
11 ms |
49756 KB |
Output is correct |
90 |
Correct |
11 ms |
49964 KB |
Output is correct |
91 |
Correct |
11 ms |
49864 KB |
Output is correct |
92 |
Correct |
11 ms |
49752 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
16 ms |
49756 KB |
Output is correct |
2 |
Correct |
11 ms |
49756 KB |
Output is correct |
3 |
Correct |
11 ms |
49820 KB |
Output is correct |
4 |
Correct |
10 ms |
49752 KB |
Output is correct |
5 |
Correct |
11 ms |
49752 KB |
Output is correct |
6 |
Correct |
11 ms |
49756 KB |
Output is correct |
7 |
Correct |
11 ms |
49756 KB |
Output is correct |
8 |
Correct |
10 ms |
49756 KB |
Output is correct |
9 |
Correct |
11 ms |
49752 KB |
Output is correct |
10 |
Correct |
11 ms |
49756 KB |
Output is correct |
11 |
Correct |
10 ms |
49756 KB |
Output is correct |
12 |
Correct |
11 ms |
49848 KB |
Output is correct |
13 |
Correct |
10 ms |
49756 KB |
Output is correct |
14 |
Correct |
10 ms |
49756 KB |
Output is correct |
15 |
Correct |
11 ms |
49756 KB |
Output is correct |
16 |
Correct |
10 ms |
49752 KB |
Output is correct |
17 |
Correct |
10 ms |
49840 KB |
Output is correct |
18 |
Correct |
11 ms |
49756 KB |
Output is correct |
19 |
Correct |
11 ms |
49820 KB |
Output is correct |
20 |
Correct |
11 ms |
49756 KB |
Output is correct |
21 |
Correct |
12 ms |
49756 KB |
Output is correct |
22 |
Correct |
11 ms |
49756 KB |
Output is correct |
23 |
Correct |
11 ms |
49756 KB |
Output is correct |
24 |
Correct |
12 ms |
49752 KB |
Output is correct |
25 |
Correct |
10 ms |
49824 KB |
Output is correct |
26 |
Correct |
11 ms |
49896 KB |
Output is correct |
27 |
Correct |
11 ms |
49888 KB |
Output is correct |
28 |
Correct |
11 ms |
49756 KB |
Output is correct |
29 |
Correct |
10 ms |
49904 KB |
Output is correct |
30 |
Correct |
11 ms |
49756 KB |
Output is correct |
31 |
Correct |
10 ms |
49756 KB |
Output is correct |
32 |
Correct |
11 ms |
49896 KB |
Output is correct |
33 |
Correct |
11 ms |
49756 KB |
Output is correct |
34 |
Correct |
11 ms |
49756 KB |
Output is correct |
35 |
Correct |
11 ms |
49888 KB |
Output is correct |
36 |
Correct |
11 ms |
49756 KB |
Output is correct |
37 |
Correct |
10 ms |
49756 KB |
Output is correct |
38 |
Correct |
11 ms |
49756 KB |
Output is correct |
39 |
Correct |
11 ms |
49756 KB |
Output is correct |
40 |
Correct |
11 ms |
49756 KB |
Output is correct |
41 |
Correct |
11 ms |
49756 KB |
Output is correct |
42 |
Correct |
11 ms |
49756 KB |
Output is correct |
43 |
Correct |
11 ms |
49884 KB |
Output is correct |
44 |
Correct |
10 ms |
49756 KB |
Output is correct |
45 |
Correct |
11 ms |
49892 KB |
Output is correct |
46 |
Correct |
11 ms |
49752 KB |
Output is correct |
47 |
Correct |
12 ms |
49756 KB |
Output is correct |
48 |
Correct |
10 ms |
49756 KB |
Output is correct |
49 |
Correct |
11 ms |
49756 KB |
Output is correct |
50 |
Correct |
11 ms |
49864 KB |
Output is correct |
51 |
Correct |
10 ms |
49752 KB |
Output is correct |
52 |
Correct |
11 ms |
49752 KB |
Output is correct |
53 |
Correct |
10 ms |
49756 KB |
Output is correct |
54 |
Correct |
11 ms |
49848 KB |
Output is correct |
55 |
Correct |
11 ms |
49884 KB |
Output is correct |
56 |
Correct |
10 ms |
49756 KB |
Output is correct |
57 |
Correct |
11 ms |
49756 KB |
Output is correct |
58 |
Correct |
11 ms |
49804 KB |
Output is correct |
59 |
Correct |
11 ms |
49756 KB |
Output is correct |
60 |
Correct |
10 ms |
49752 KB |
Output is correct |
61 |
Correct |
11 ms |
49756 KB |
Output is correct |
62 |
Correct |
10 ms |
49844 KB |
Output is correct |
63 |
Correct |
11 ms |
49756 KB |
Output is correct |
64 |
Correct |
10 ms |
49908 KB |
Output is correct |
65 |
Correct |
11 ms |
49756 KB |
Output is correct |
66 |
Correct |
50 ms |
67016 KB |
Output is correct |
67 |
Correct |
53 ms |
66676 KB |
Output is correct |
68 |
Correct |
54 ms |
66644 KB |
Output is correct |
69 |
Correct |
54 ms |
67532 KB |
Output is correct |
70 |
Correct |
49 ms |
63252 KB |
Output is correct |
71 |
Correct |
59 ms |
65512 KB |
Output is correct |
72 |
Correct |
58 ms |
63884 KB |
Output is correct |
73 |
Correct |
60 ms |
64688 KB |
Output is correct |
74 |
Correct |
53 ms |
62032 KB |
Output is correct |
75 |
Correct |
52 ms |
62036 KB |
Output is correct |
76 |
Correct |
44 ms |
59536 KB |
Output is correct |
77 |
Correct |
44 ms |
59220 KB |
Output is correct |
78 |
Correct |
54 ms |
59532 KB |
Output is correct |
79 |
Correct |
42 ms |
58960 KB |
Output is correct |
80 |
Correct |
36 ms |
58064 KB |
Output is correct |
81 |
Correct |
35 ms |
57876 KB |
Output is correct |
82 |
Correct |
13 ms |
50916 KB |
Output is correct |
83 |
Correct |
12 ms |
50916 KB |
Output is correct |
84 |
Correct |
12 ms |
50916 KB |
Output is correct |
85 |
Correct |
12 ms |
50796 KB |
Output is correct |
86 |
Correct |
13 ms |
50912 KB |
Output is correct |
87 |
Correct |
12 ms |
50912 KB |
Output is correct |
88 |
Correct |
11 ms |
49752 KB |
Output is correct |
89 |
Correct |
11 ms |
49992 KB |
Output is correct |
90 |
Correct |
11 ms |
49756 KB |
Output is correct |
91 |
Correct |
11 ms |
49904 KB |
Output is correct |
92 |
Correct |
11 ms |
50008 KB |
Output is correct |
93 |
Correct |
11 ms |
50012 KB |
Output is correct |
94 |
Correct |
11 ms |
49896 KB |
Output is correct |
95 |
Correct |
11 ms |
50012 KB |
Output is correct |
96 |
Correct |
11 ms |
50012 KB |
Output is correct |
97 |
Correct |
11 ms |
49752 KB |
Output is correct |
98 |
Correct |
11 ms |
49752 KB |
Output is correct |
99 |
Correct |
11 ms |
49860 KB |
Output is correct |
100 |
Correct |
11 ms |
49756 KB |
Output is correct |
101 |
Correct |
12 ms |
49756 KB |
Output is correct |
102 |
Correct |
11 ms |
49880 KB |
Output is correct |
103 |
Correct |
11 ms |
49756 KB |
Output is correct |
104 |
Correct |
11 ms |
49756 KB |
Output is correct |
105 |
Correct |
11 ms |
49900 KB |
Output is correct |
106 |
Correct |
11 ms |
49756 KB |
Output is correct |
107 |
Correct |
12 ms |
49752 KB |
Output is correct |
108 |
Correct |
55 ms |
61524 KB |
Output is correct |
109 |
Correct |
55 ms |
61392 KB |
Output is correct |
110 |
Correct |
55 ms |
61500 KB |
Output is correct |
111 |
Correct |
60 ms |
61776 KB |
Output is correct |
112 |
Correct |
54 ms |
61436 KB |
Output is correct |
113 |
Correct |
65 ms |
71652 KB |
Output is correct |
114 |
Correct |
63 ms |
67812 KB |
Output is correct |
115 |
Correct |
62 ms |
66384 KB |
Output is correct |
116 |
Correct |
67 ms |
64788 KB |
Output is correct |
117 |
Correct |
59 ms |
61508 KB |
Output is correct |
118 |
Correct |
55 ms |
61560 KB |
Output is correct |
119 |
Correct |
55 ms |
61332 KB |
Output is correct |
120 |
Correct |
54 ms |
61476 KB |
Output is correct |
121 |
Correct |
51 ms |
61032 KB |
Output is correct |
122 |
Correct |
46 ms |
60496 KB |
Output is correct |
123 |
Correct |
35 ms |
58176 KB |
Output is correct |
124 |
Correct |
40 ms |
60624 KB |
Output is correct |
125 |
Correct |
40 ms |
60492 KB |
Output is correct |
126 |
Correct |
44 ms |
60872 KB |
Output is correct |
127 |
Correct |
43 ms |
60452 KB |
Output is correct |
128 |
Correct |
11 ms |
49756 KB |
Output is correct |
129 |
Correct |
11 ms |
49756 KB |
Output is correct |
130 |
Correct |
11 ms |
49992 KB |
Output is correct |
131 |
Correct |
11 ms |
49844 KB |
Output is correct |
132 |
Correct |
11 ms |
49848 KB |
Output is correct |
133 |
Correct |
11 ms |
49756 KB |
Output is correct |
134 |
Correct |
11 ms |
49756 KB |
Output is correct |
135 |
Correct |
11 ms |
49756 KB |
Output is correct |
136 |
Correct |
12 ms |
49756 KB |
Output is correct |
137 |
Correct |
11 ms |
49756 KB |
Output is correct |
138 |
Correct |
12 ms |
49980 KB |
Output is correct |
139 |
Correct |
11 ms |
50012 KB |
Output is correct |
140 |
Correct |
11 ms |
50008 KB |
Output is correct |
141 |
Correct |
12 ms |
50012 KB |
Output is correct |
142 |
Correct |
11 ms |
50012 KB |
Output is correct |
143 |
Correct |
11 ms |
49980 KB |
Output is correct |
144 |
Correct |
11 ms |
49756 KB |
Output is correct |
145 |
Correct |
12 ms |
49756 KB |
Output is correct |
146 |
Correct |
11 ms |
49756 KB |
Output is correct |
147 |
Correct |
11 ms |
49868 KB |
Output is correct |
148 |
Correct |
11 ms |
49892 KB |
Output is correct |
149 |
Correct |
11 ms |
49752 KB |
Output is correct |
150 |
Correct |
11 ms |
49896 KB |
Output is correct |
151 |
Correct |
11 ms |
49756 KB |
Output is correct |
152 |
Correct |
11 ms |
49852 KB |
Output is correct |
153 |
Correct |
11 ms |
49924 KB |
Output is correct |
154 |
Correct |
10 ms |
49756 KB |
Output is correct |
155 |
Correct |
56 ms |
61524 KB |
Output is correct |
156 |
Correct |
58 ms |
61776 KB |
Output is correct |
157 |
Correct |
60 ms |
61268 KB |
Output is correct |
158 |
Correct |
67 ms |
60780 KB |
Output is correct |
159 |
Correct |
52 ms |
58960 KB |
Output is correct |
160 |
Correct |
51 ms |
58448 KB |
Output is correct |
161 |
Correct |
47 ms |
58192 KB |
Output is correct |
162 |
Correct |
46 ms |
57936 KB |
Output is correct |
163 |
Correct |
55 ms |
57924 KB |
Output is correct |
164 |
Correct |
44 ms |
57684 KB |
Output is correct |
165 |
Correct |
43 ms |
55380 KB |
Output is correct |
166 |
Correct |
43 ms |
55380 KB |
Output is correct |
167 |
Correct |
43 ms |
55636 KB |
Output is correct |
168 |
Correct |
42 ms |
58344 KB |
Output is correct |
169 |
Correct |
65 ms |
67764 KB |
Output is correct |
170 |
Correct |
61 ms |
65476 KB |
Output is correct |
171 |
Correct |
64 ms |
65996 KB |
Output is correct |
172 |
Correct |
59 ms |
64336 KB |
Output is correct |
173 |
Correct |
59 ms |
60244 KB |
Output is correct |
174 |
Correct |
58 ms |
60244 KB |
Output is correct |
175 |
Correct |
55 ms |
60120 KB |
Output is correct |
176 |
Correct |
50 ms |
59472 KB |
Output is correct |
177 |
Correct |
50 ms |
58964 KB |
Output is correct |
178 |
Correct |
51 ms |
60984 KB |
Output is correct |
179 |
Correct |
53 ms |
61012 KB |
Output is correct |
180 |
Correct |
50 ms |
60364 KB |
Output is correct |
181 |
Correct |
54 ms |
60244 KB |
Output is correct |
182 |
Correct |
10 ms |
49756 KB |
Output is correct |
183 |
Correct |
11 ms |
49964 KB |
Output is correct |
184 |
Correct |
11 ms |
49756 KB |
Output is correct |
185 |
Correct |
11 ms |
50012 KB |
Output is correct |
186 |
Correct |
11 ms |
49952 KB |
Output is correct |
187 |
Correct |
11 ms |
49756 KB |
Output is correct |
188 |
Correct |
11 ms |
49868 KB |
Output is correct |
189 |
Correct |
11 ms |
49756 KB |
Output is correct |
190 |
Correct |
11 ms |
49752 KB |
Output is correct |
191 |
Correct |
12 ms |
50260 KB |
Output is correct |
192 |
Correct |
10 ms |
49756 KB |
Output is correct |
193 |
Correct |
11 ms |
49896 KB |
Output is correct |
194 |
Correct |
11 ms |
49756 KB |
Output is correct |
195 |
Correct |
11 ms |
49900 KB |
Output is correct |
196 |
Correct |
11 ms |
49892 KB |
Output is correct |
197 |
Correct |
11 ms |
49756 KB |
Output is correct |
198 |
Correct |
11 ms |
50028 KB |
Output is correct |
199 |
Correct |
11 ms |
49828 KB |
Output is correct |
200 |
Correct |
11 ms |
49756 KB |
Output is correct |
201 |
Correct |
11 ms |
49756 KB |
Output is correct |
202 |
Correct |
11 ms |
49824 KB |
Output is correct |
203 |
Correct |
11 ms |
49756 KB |
Output is correct |
204 |
Correct |
11 ms |
49752 KB |
Output is correct |
205 |
Correct |
11 ms |
49756 KB |
Output is correct |
206 |
Correct |
11 ms |
49964 KB |
Output is correct |
207 |
Correct |
11 ms |
49864 KB |
Output is correct |
208 |
Correct |
11 ms |
49752 KB |
Output is correct |
209 |
Correct |
12 ms |
50908 KB |
Output is correct |
210 |
Correct |
36 ms |
57804 KB |
Output is correct |
211 |
Correct |
61 ms |
61716 KB |
Output is correct |
212 |
Correct |
79 ms |
64224 KB |
Output is correct |
213 |
Correct |
78 ms |
66420 KB |
Output is correct |
214 |
Correct |
41 ms |
58980 KB |
Output is correct |
215 |
Correct |
42 ms |
58708 KB |
Output is correct |
216 |
Correct |
57 ms |
60424 KB |
Output is correct |
217 |
Correct |
56 ms |
59224 KB |
Output is correct |
218 |
Correct |
47 ms |
57844 KB |
Output is correct |
219 |
Correct |
44 ms |
57424 KB |
Output is correct |
220 |
Correct |
43 ms |
55388 KB |
Output is correct |
221 |
Correct |
44 ms |
55400 KB |
Output is correct |
222 |
Correct |
42 ms |
56916 KB |
Output is correct |
223 |
Correct |
64 ms |
62548 KB |
Output is correct |
224 |
Correct |
62 ms |
61356 KB |
Output is correct |
225 |
Correct |
54 ms |
58968 KB |
Output is correct |
226 |
Correct |
56 ms |
58968 KB |
Output is correct |
227 |
Correct |
57 ms |
58964 KB |
Output is correct |
228 |
Correct |
50 ms |
58708 KB |
Output is correct |
229 |
Correct |
47 ms |
58440 KB |
Output is correct |
230 |
Correct |
52 ms |
58760 KB |
Output is correct |
231 |
Correct |
51 ms |
58844 KB |
Output is correct |