#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.1,sse4.2,popcnt,abm,mmx,avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...)
#endif
using ll=long long;
using pii=array<int,2>;
const int N=200005;
int n,m,u[N],v[N];
ll ans,sz,dp[N];
int V[N], bn, dn, T[N];
vector<pii> G[N];
vector<int> BCC[N], L[N], S;
int GetBCC(int cur, int prev = 0) {
sz++;
int ret = V[cur] = ++dn;
for (auto& [next, edge] : G[cur]) {
if (next == prev) continue;
if (V[cur] > V[next]) S.push_back(edge);
if (V[next]) ret = min(ret, V[next]);
else {
int temp = GetBCC(next, cur);
ret = min(ret, temp);
if (temp < V[cur]) continue;
bn++;
while (1) {
int t = S.back();
if(T[u[t]] != bn){
T[u[t]] = bn;
BCC[bn].push_back(u[t]);
L[u[t]].push_back(bn);
}
if(T[v[t]] != bn){
T[v[t]] = bn;
BCC[bn].push_back(v[t]);
L[v[t]].push_back(bn);
}
S.pop_back();
if (t == edge) break;
}
debug(BCC[bn]);
}
}
return ret;
}
void dfsBCC(int b,int p){
dp[b]=BCC[b].size();
for(int u: BCC[b]) if(p!=u){
ll S=0;
for(int b2: L[u]){
if(!dp[b2]){
dfsBCC(b2,u);
ans-=(ll)(BCC[b2].size()-1)*(sz+1-dp[b2])*(sz-dp[b2]);
S+=dp[b2]-1;
dp[b]+=dp[b2]-1;
}
}
ans-=(BCC[b].size()-1)*(S+1)*S;
}
}
int main(){
ios::sync_with_stdio(false); cin.tie(0);
cin>>n>>m;
for(int i=1;i<=m;i++){
cin>>u[i]>>v[i];
G[u[i]].push_back({v[i],i});
G[v[i]].push_back({u[i],i});
}
for(int u=1;u<=n;u++) if(!V[u]){
sz=0;
GetBCC(u);
ans+=sz*(sz-1)*(sz-2);
dfsBCC(bn,0);
}
cout<<ans;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
17056 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
16988 KB |
Output is correct |
4 |
Correct |
5 ms |
16988 KB |
Output is correct |
5 |
Correct |
5 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
17016 KB |
Output is correct |
7 |
Correct |
6 ms |
16988 KB |
Output is correct |
8 |
Correct |
5 ms |
16988 KB |
Output is correct |
9 |
Correct |
5 ms |
16988 KB |
Output is correct |
10 |
Correct |
5 ms |
16824 KB |
Output is correct |
11 |
Correct |
6 ms |
16988 KB |
Output is correct |
12 |
Correct |
6 ms |
17016 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
17216 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
5 ms |
16984 KB |
Output is correct |
17 |
Correct |
5 ms |
16988 KB |
Output is correct |
18 |
Correct |
5 ms |
16988 KB |
Output is correct |
19 |
Correct |
5 ms |
17020 KB |
Output is correct |
20 |
Correct |
5 ms |
16988 KB |
Output is correct |
21 |
Correct |
5 ms |
16984 KB |
Output is correct |
22 |
Correct |
5 ms |
16988 KB |
Output is correct |
23 |
Correct |
5 ms |
17044 KB |
Output is correct |
24 |
Correct |
6 ms |
16988 KB |
Output is correct |
25 |
Correct |
5 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
5 ms |
16988 KB |
Output is correct |
28 |
Correct |
6 ms |
16988 KB |
Output is correct |
29 |
Correct |
5 ms |
16988 KB |
Output is correct |
30 |
Correct |
5 ms |
16988 KB |
Output is correct |
31 |
Correct |
5 ms |
16988 KB |
Output is correct |
32 |
Correct |
5 ms |
16988 KB |
Output is correct |
33 |
Correct |
6 ms |
16988 KB |
Output is correct |
34 |
Correct |
5 ms |
17048 KB |
Output is correct |
35 |
Correct |
5 ms |
16984 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
17056 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
16988 KB |
Output is correct |
4 |
Correct |
5 ms |
16988 KB |
Output is correct |
5 |
Correct |
5 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
17016 KB |
Output is correct |
7 |
Correct |
6 ms |
16988 KB |
Output is correct |
8 |
Correct |
5 ms |
16988 KB |
Output is correct |
9 |
Correct |
5 ms |
16988 KB |
Output is correct |
10 |
Correct |
5 ms |
16824 KB |
Output is correct |
11 |
Correct |
6 ms |
16988 KB |
Output is correct |
12 |
Correct |
6 ms |
17016 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
17216 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
5 ms |
16984 KB |
Output is correct |
17 |
Correct |
5 ms |
16988 KB |
Output is correct |
18 |
Correct |
5 ms |
16988 KB |
Output is correct |
19 |
Correct |
5 ms |
17020 KB |
Output is correct |
20 |
Correct |
5 ms |
16988 KB |
Output is correct |
21 |
Correct |
5 ms |
16984 KB |
Output is correct |
22 |
Correct |
5 ms |
16988 KB |
Output is correct |
23 |
Correct |
5 ms |
17044 KB |
Output is correct |
24 |
Correct |
6 ms |
16988 KB |
Output is correct |
25 |
Correct |
5 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
5 ms |
16988 KB |
Output is correct |
28 |
Correct |
6 ms |
16988 KB |
Output is correct |
29 |
Correct |
5 ms |
16988 KB |
Output is correct |
30 |
Correct |
5 ms |
16988 KB |
Output is correct |
31 |
Correct |
5 ms |
16988 KB |
Output is correct |
32 |
Correct |
5 ms |
16988 KB |
Output is correct |
33 |
Correct |
6 ms |
16988 KB |
Output is correct |
34 |
Correct |
5 ms |
17048 KB |
Output is correct |
35 |
Correct |
5 ms |
16984 KB |
Output is correct |
36 |
Correct |
6 ms |
16984 KB |
Output is correct |
37 |
Correct |
5 ms |
17240 KB |
Output is correct |
38 |
Correct |
5 ms |
16988 KB |
Output is correct |
39 |
Correct |
5 ms |
17056 KB |
Output is correct |
40 |
Correct |
5 ms |
16988 KB |
Output is correct |
41 |
Correct |
7 ms |
16988 KB |
Output is correct |
42 |
Correct |
5 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
5 ms |
16988 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
6 ms |
16988 KB |
Output is correct |
47 |
Correct |
5 ms |
16984 KB |
Output is correct |
48 |
Correct |
5 ms |
16988 KB |
Output is correct |
49 |
Correct |
5 ms |
16836 KB |
Output is correct |
50 |
Correct |
5 ms |
16988 KB |
Output is correct |
51 |
Correct |
5 ms |
16988 KB |
Output is correct |
52 |
Correct |
6 ms |
16988 KB |
Output is correct |
53 |
Correct |
6 ms |
16988 KB |
Output is correct |
54 |
Correct |
5 ms |
17048 KB |
Output is correct |
55 |
Correct |
5 ms |
16988 KB |
Output is correct |
56 |
Correct |
6 ms |
16988 KB |
Output is correct |
57 |
Correct |
5 ms |
16988 KB |
Output is correct |
58 |
Correct |
5 ms |
16988 KB |
Output is correct |
59 |
Correct |
5 ms |
16988 KB |
Output is correct |
60 |
Correct |
5 ms |
16988 KB |
Output is correct |
61 |
Correct |
5 ms |
16984 KB |
Output is correct |
62 |
Correct |
6 ms |
16984 KB |
Output is correct |
63 |
Correct |
5 ms |
17004 KB |
Output is correct |
64 |
Correct |
5 ms |
16988 KB |
Output is correct |
65 |
Correct |
6 ms |
17052 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
33768 KB |
Output is correct |
2 |
Correct |
61 ms |
33736 KB |
Output is correct |
3 |
Correct |
57 ms |
30668 KB |
Output is correct |
4 |
Correct |
66 ms |
32204 KB |
Output is correct |
5 |
Correct |
54 ms |
28364 KB |
Output is correct |
6 |
Correct |
68 ms |
29728 KB |
Output is correct |
7 |
Correct |
62 ms |
28204 KB |
Output is correct |
8 |
Correct |
64 ms |
28904 KB |
Output is correct |
9 |
Correct |
64 ms |
27204 KB |
Output is correct |
10 |
Correct |
62 ms |
27740 KB |
Output is correct |
11 |
Correct |
48 ms |
25436 KB |
Output is correct |
12 |
Correct |
46 ms |
25172 KB |
Output is correct |
13 |
Correct |
45 ms |
25180 KB |
Output is correct |
14 |
Correct |
43 ms |
24916 KB |
Output is correct |
15 |
Correct |
33 ms |
24144 KB |
Output is correct |
16 |
Correct |
43 ms |
23736 KB |
Output is correct |
17 |
Correct |
6 ms |
17240 KB |
Output is correct |
18 |
Correct |
9 ms |
17244 KB |
Output is correct |
19 |
Correct |
9 ms |
17244 KB |
Output is correct |
20 |
Correct |
9 ms |
17440 KB |
Output is correct |
21 |
Correct |
6 ms |
17244 KB |
Output is correct |
22 |
Correct |
6 ms |
17456 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
16988 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
17060 KB |
Output is correct |
4 |
Correct |
6 ms |
17244 KB |
Output is correct |
5 |
Correct |
6 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
16988 KB |
Output is correct |
7 |
Correct |
5 ms |
16988 KB |
Output is correct |
8 |
Correct |
7 ms |
17052 KB |
Output is correct |
9 |
Correct |
6 ms |
16984 KB |
Output is correct |
10 |
Correct |
6 ms |
16988 KB |
Output is correct |
11 |
Correct |
5 ms |
16988 KB |
Output is correct |
12 |
Correct |
5 ms |
16988 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
17240 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
5 ms |
16988 KB |
Output is correct |
17 |
Correct |
7 ms |
16988 KB |
Output is correct |
18 |
Correct |
7 ms |
16988 KB |
Output is correct |
19 |
Correct |
6 ms |
16988 KB |
Output is correct |
20 |
Correct |
5 ms |
16988 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
66 ms |
28244 KB |
Output is correct |
2 |
Correct |
66 ms |
28308 KB |
Output is correct |
3 |
Correct |
92 ms |
28244 KB |
Output is correct |
4 |
Correct |
70 ms |
28248 KB |
Output is correct |
5 |
Correct |
85 ms |
28244 KB |
Output is correct |
6 |
Correct |
95 ms |
33788 KB |
Output is correct |
7 |
Correct |
80 ms |
32032 KB |
Output is correct |
8 |
Correct |
71 ms |
31060 KB |
Output is correct |
9 |
Correct |
81 ms |
29964 KB |
Output is correct |
10 |
Correct |
75 ms |
28128 KB |
Output is correct |
11 |
Correct |
61 ms |
28240 KB |
Output is correct |
12 |
Correct |
63 ms |
28492 KB |
Output is correct |
13 |
Correct |
59 ms |
28244 KB |
Output is correct |
14 |
Correct |
59 ms |
27608 KB |
Output is correct |
15 |
Correct |
63 ms |
26704 KB |
Output is correct |
16 |
Correct |
37 ms |
24040 KB |
Output is correct |
17 |
Correct |
60 ms |
28928 KB |
Output is correct |
18 |
Correct |
49 ms |
28728 KB |
Output is correct |
19 |
Correct |
64 ms |
28824 KB |
Output is correct |
20 |
Correct |
48 ms |
28736 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
16984 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
16988 KB |
Output is correct |
4 |
Correct |
6 ms |
17240 KB |
Output is correct |
5 |
Correct |
5 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
16988 KB |
Output is correct |
7 |
Correct |
5 ms |
16988 KB |
Output is correct |
8 |
Correct |
5 ms |
16988 KB |
Output is correct |
9 |
Correct |
5 ms |
16988 KB |
Output is correct |
10 |
Correct |
5 ms |
16988 KB |
Output is correct |
11 |
Correct |
5 ms |
16984 KB |
Output is correct |
12 |
Correct |
5 ms |
16988 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
16988 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
6 ms |
16988 KB |
Output is correct |
17 |
Correct |
6 ms |
17244 KB |
Output is correct |
18 |
Correct |
5 ms |
16988 KB |
Output is correct |
19 |
Correct |
5 ms |
16988 KB |
Output is correct |
20 |
Correct |
6 ms |
16984 KB |
Output is correct |
21 |
Correct |
5 ms |
17056 KB |
Output is correct |
22 |
Correct |
5 ms |
16988 KB |
Output is correct |
23 |
Correct |
5 ms |
16988 KB |
Output is correct |
24 |
Correct |
5 ms |
16988 KB |
Output is correct |
25 |
Correct |
5 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
5 ms |
16988 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
60 ms |
28260 KB |
Output is correct |
2 |
Correct |
81 ms |
28368 KB |
Output is correct |
3 |
Correct |
69 ms |
27476 KB |
Output is correct |
4 |
Correct |
64 ms |
28240 KB |
Output is correct |
5 |
Correct |
56 ms |
27116 KB |
Output is correct |
6 |
Correct |
56 ms |
26540 KB |
Output is correct |
7 |
Correct |
51 ms |
26452 KB |
Output is correct |
8 |
Correct |
59 ms |
26096 KB |
Output is correct |
9 |
Correct |
56 ms |
25940 KB |
Output is correct |
10 |
Correct |
48 ms |
25936 KB |
Output is correct |
11 |
Correct |
49 ms |
25684 KB |
Output is correct |
12 |
Correct |
46 ms |
25772 KB |
Output is correct |
13 |
Correct |
44 ms |
25712 KB |
Output is correct |
14 |
Correct |
47 ms |
27852 KB |
Output is correct |
15 |
Correct |
102 ms |
33276 KB |
Output is correct |
16 |
Correct |
85 ms |
31828 KB |
Output is correct |
17 |
Correct |
71 ms |
32208 KB |
Output is correct |
18 |
Correct |
71 ms |
30960 KB |
Output is correct |
19 |
Correct |
67 ms |
28236 KB |
Output is correct |
20 |
Correct |
70 ms |
28224 KB |
Output is correct |
21 |
Correct |
84 ms |
28240 KB |
Output is correct |
22 |
Correct |
70 ms |
27728 KB |
Output is correct |
23 |
Correct |
51 ms |
26708 KB |
Output is correct |
24 |
Correct |
63 ms |
29260 KB |
Output is correct |
25 |
Correct |
65 ms |
29136 KB |
Output is correct |
26 |
Correct |
61 ms |
28612 KB |
Output is correct |
27 |
Correct |
68 ms |
28696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
17056 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
16988 KB |
Output is correct |
4 |
Correct |
5 ms |
16988 KB |
Output is correct |
5 |
Correct |
5 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
17016 KB |
Output is correct |
7 |
Correct |
6 ms |
16988 KB |
Output is correct |
8 |
Correct |
5 ms |
16988 KB |
Output is correct |
9 |
Correct |
5 ms |
16988 KB |
Output is correct |
10 |
Correct |
5 ms |
16824 KB |
Output is correct |
11 |
Correct |
6 ms |
16988 KB |
Output is correct |
12 |
Correct |
6 ms |
17016 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
17216 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
5 ms |
16984 KB |
Output is correct |
17 |
Correct |
5 ms |
16988 KB |
Output is correct |
18 |
Correct |
5 ms |
16988 KB |
Output is correct |
19 |
Correct |
5 ms |
17020 KB |
Output is correct |
20 |
Correct |
5 ms |
16988 KB |
Output is correct |
21 |
Correct |
5 ms |
16984 KB |
Output is correct |
22 |
Correct |
5 ms |
16988 KB |
Output is correct |
23 |
Correct |
5 ms |
17044 KB |
Output is correct |
24 |
Correct |
6 ms |
16988 KB |
Output is correct |
25 |
Correct |
5 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
5 ms |
16988 KB |
Output is correct |
28 |
Correct |
6 ms |
16988 KB |
Output is correct |
29 |
Correct |
5 ms |
16988 KB |
Output is correct |
30 |
Correct |
5 ms |
16988 KB |
Output is correct |
31 |
Correct |
5 ms |
16988 KB |
Output is correct |
32 |
Correct |
5 ms |
16988 KB |
Output is correct |
33 |
Correct |
6 ms |
16988 KB |
Output is correct |
34 |
Correct |
5 ms |
17048 KB |
Output is correct |
35 |
Correct |
5 ms |
16984 KB |
Output is correct |
36 |
Correct |
6 ms |
16984 KB |
Output is correct |
37 |
Correct |
5 ms |
17240 KB |
Output is correct |
38 |
Correct |
5 ms |
16988 KB |
Output is correct |
39 |
Correct |
5 ms |
17056 KB |
Output is correct |
40 |
Correct |
5 ms |
16988 KB |
Output is correct |
41 |
Correct |
7 ms |
16988 KB |
Output is correct |
42 |
Correct |
5 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
5 ms |
16988 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
6 ms |
16988 KB |
Output is correct |
47 |
Correct |
5 ms |
16984 KB |
Output is correct |
48 |
Correct |
5 ms |
16988 KB |
Output is correct |
49 |
Correct |
5 ms |
16836 KB |
Output is correct |
50 |
Correct |
5 ms |
16988 KB |
Output is correct |
51 |
Correct |
5 ms |
16988 KB |
Output is correct |
52 |
Correct |
6 ms |
16988 KB |
Output is correct |
53 |
Correct |
6 ms |
16988 KB |
Output is correct |
54 |
Correct |
5 ms |
17048 KB |
Output is correct |
55 |
Correct |
5 ms |
16988 KB |
Output is correct |
56 |
Correct |
6 ms |
16988 KB |
Output is correct |
57 |
Correct |
5 ms |
16988 KB |
Output is correct |
58 |
Correct |
5 ms |
16988 KB |
Output is correct |
59 |
Correct |
5 ms |
16988 KB |
Output is correct |
60 |
Correct |
5 ms |
16988 KB |
Output is correct |
61 |
Correct |
5 ms |
16984 KB |
Output is correct |
62 |
Correct |
6 ms |
16984 KB |
Output is correct |
63 |
Correct |
5 ms |
17004 KB |
Output is correct |
64 |
Correct |
5 ms |
16988 KB |
Output is correct |
65 |
Correct |
6 ms |
17052 KB |
Output is correct |
66 |
Correct |
5 ms |
16988 KB |
Output is correct |
67 |
Correct |
5 ms |
16988 KB |
Output is correct |
68 |
Correct |
6 ms |
16988 KB |
Output is correct |
69 |
Correct |
5 ms |
16988 KB |
Output is correct |
70 |
Correct |
5 ms |
17128 KB |
Output is correct |
71 |
Correct |
5 ms |
16988 KB |
Output is correct |
72 |
Correct |
5 ms |
16988 KB |
Output is correct |
73 |
Correct |
5 ms |
16988 KB |
Output is correct |
74 |
Correct |
5 ms |
16988 KB |
Output is correct |
75 |
Correct |
5 ms |
16988 KB |
Output is correct |
76 |
Correct |
5 ms |
16988 KB |
Output is correct |
77 |
Correct |
5 ms |
17064 KB |
Output is correct |
78 |
Correct |
6 ms |
16988 KB |
Output is correct |
79 |
Correct |
5 ms |
16988 KB |
Output is correct |
80 |
Correct |
5 ms |
16988 KB |
Output is correct |
81 |
Correct |
5 ms |
17240 KB |
Output is correct |
82 |
Correct |
5 ms |
16988 KB |
Output is correct |
83 |
Correct |
5 ms |
16988 KB |
Output is correct |
84 |
Correct |
5 ms |
16988 KB |
Output is correct |
85 |
Correct |
5 ms |
16988 KB |
Output is correct |
86 |
Correct |
5 ms |
17160 KB |
Output is correct |
87 |
Correct |
6 ms |
16984 KB |
Output is correct |
88 |
Correct |
6 ms |
16988 KB |
Output is correct |
89 |
Correct |
5 ms |
16988 KB |
Output is correct |
90 |
Correct |
5 ms |
16988 KB |
Output is correct |
91 |
Correct |
5 ms |
16984 KB |
Output is correct |
92 |
Correct |
5 ms |
16984 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
17056 KB |
Output is correct |
2 |
Correct |
5 ms |
16988 KB |
Output is correct |
3 |
Correct |
5 ms |
16988 KB |
Output is correct |
4 |
Correct |
5 ms |
16988 KB |
Output is correct |
5 |
Correct |
5 ms |
16988 KB |
Output is correct |
6 |
Correct |
5 ms |
17016 KB |
Output is correct |
7 |
Correct |
6 ms |
16988 KB |
Output is correct |
8 |
Correct |
5 ms |
16988 KB |
Output is correct |
9 |
Correct |
5 ms |
16988 KB |
Output is correct |
10 |
Correct |
5 ms |
16824 KB |
Output is correct |
11 |
Correct |
6 ms |
16988 KB |
Output is correct |
12 |
Correct |
6 ms |
17016 KB |
Output is correct |
13 |
Correct |
5 ms |
16988 KB |
Output is correct |
14 |
Correct |
5 ms |
17216 KB |
Output is correct |
15 |
Correct |
5 ms |
16988 KB |
Output is correct |
16 |
Correct |
5 ms |
16984 KB |
Output is correct |
17 |
Correct |
5 ms |
16988 KB |
Output is correct |
18 |
Correct |
5 ms |
16988 KB |
Output is correct |
19 |
Correct |
5 ms |
17020 KB |
Output is correct |
20 |
Correct |
5 ms |
16988 KB |
Output is correct |
21 |
Correct |
5 ms |
16984 KB |
Output is correct |
22 |
Correct |
5 ms |
16988 KB |
Output is correct |
23 |
Correct |
5 ms |
17044 KB |
Output is correct |
24 |
Correct |
6 ms |
16988 KB |
Output is correct |
25 |
Correct |
5 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
5 ms |
16988 KB |
Output is correct |
28 |
Correct |
6 ms |
16988 KB |
Output is correct |
29 |
Correct |
5 ms |
16988 KB |
Output is correct |
30 |
Correct |
5 ms |
16988 KB |
Output is correct |
31 |
Correct |
5 ms |
16988 KB |
Output is correct |
32 |
Correct |
5 ms |
16988 KB |
Output is correct |
33 |
Correct |
6 ms |
16988 KB |
Output is correct |
34 |
Correct |
5 ms |
17048 KB |
Output is correct |
35 |
Correct |
5 ms |
16984 KB |
Output is correct |
36 |
Correct |
6 ms |
16984 KB |
Output is correct |
37 |
Correct |
5 ms |
17240 KB |
Output is correct |
38 |
Correct |
5 ms |
16988 KB |
Output is correct |
39 |
Correct |
5 ms |
17056 KB |
Output is correct |
40 |
Correct |
5 ms |
16988 KB |
Output is correct |
41 |
Correct |
7 ms |
16988 KB |
Output is correct |
42 |
Correct |
5 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
5 ms |
16988 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
6 ms |
16988 KB |
Output is correct |
47 |
Correct |
5 ms |
16984 KB |
Output is correct |
48 |
Correct |
5 ms |
16988 KB |
Output is correct |
49 |
Correct |
5 ms |
16836 KB |
Output is correct |
50 |
Correct |
5 ms |
16988 KB |
Output is correct |
51 |
Correct |
5 ms |
16988 KB |
Output is correct |
52 |
Correct |
6 ms |
16988 KB |
Output is correct |
53 |
Correct |
6 ms |
16988 KB |
Output is correct |
54 |
Correct |
5 ms |
17048 KB |
Output is correct |
55 |
Correct |
5 ms |
16988 KB |
Output is correct |
56 |
Correct |
6 ms |
16988 KB |
Output is correct |
57 |
Correct |
5 ms |
16988 KB |
Output is correct |
58 |
Correct |
5 ms |
16988 KB |
Output is correct |
59 |
Correct |
5 ms |
16988 KB |
Output is correct |
60 |
Correct |
5 ms |
16988 KB |
Output is correct |
61 |
Correct |
5 ms |
16984 KB |
Output is correct |
62 |
Correct |
6 ms |
16984 KB |
Output is correct |
63 |
Correct |
5 ms |
17004 KB |
Output is correct |
64 |
Correct |
5 ms |
16988 KB |
Output is correct |
65 |
Correct |
6 ms |
17052 KB |
Output is correct |
66 |
Correct |
50 ms |
33768 KB |
Output is correct |
67 |
Correct |
61 ms |
33736 KB |
Output is correct |
68 |
Correct |
57 ms |
30668 KB |
Output is correct |
69 |
Correct |
66 ms |
32204 KB |
Output is correct |
70 |
Correct |
54 ms |
28364 KB |
Output is correct |
71 |
Correct |
68 ms |
29728 KB |
Output is correct |
72 |
Correct |
62 ms |
28204 KB |
Output is correct |
73 |
Correct |
64 ms |
28904 KB |
Output is correct |
74 |
Correct |
64 ms |
27204 KB |
Output is correct |
75 |
Correct |
62 ms |
27740 KB |
Output is correct |
76 |
Correct |
48 ms |
25436 KB |
Output is correct |
77 |
Correct |
46 ms |
25172 KB |
Output is correct |
78 |
Correct |
45 ms |
25180 KB |
Output is correct |
79 |
Correct |
43 ms |
24916 KB |
Output is correct |
80 |
Correct |
33 ms |
24144 KB |
Output is correct |
81 |
Correct |
43 ms |
23736 KB |
Output is correct |
82 |
Correct |
6 ms |
17240 KB |
Output is correct |
83 |
Correct |
9 ms |
17244 KB |
Output is correct |
84 |
Correct |
9 ms |
17244 KB |
Output is correct |
85 |
Correct |
9 ms |
17440 KB |
Output is correct |
86 |
Correct |
6 ms |
17244 KB |
Output is correct |
87 |
Correct |
6 ms |
17456 KB |
Output is correct |
88 |
Correct |
5 ms |
16988 KB |
Output is correct |
89 |
Correct |
5 ms |
16988 KB |
Output is correct |
90 |
Correct |
5 ms |
17060 KB |
Output is correct |
91 |
Correct |
6 ms |
17244 KB |
Output is correct |
92 |
Correct |
6 ms |
16988 KB |
Output is correct |
93 |
Correct |
5 ms |
16988 KB |
Output is correct |
94 |
Correct |
5 ms |
16988 KB |
Output is correct |
95 |
Correct |
7 ms |
17052 KB |
Output is correct |
96 |
Correct |
6 ms |
16984 KB |
Output is correct |
97 |
Correct |
6 ms |
16988 KB |
Output is correct |
98 |
Correct |
5 ms |
16988 KB |
Output is correct |
99 |
Correct |
5 ms |
16988 KB |
Output is correct |
100 |
Correct |
5 ms |
16988 KB |
Output is correct |
101 |
Correct |
5 ms |
17240 KB |
Output is correct |
102 |
Correct |
5 ms |
16988 KB |
Output is correct |
103 |
Correct |
5 ms |
16988 KB |
Output is correct |
104 |
Correct |
7 ms |
16988 KB |
Output is correct |
105 |
Correct |
7 ms |
16988 KB |
Output is correct |
106 |
Correct |
6 ms |
16988 KB |
Output is correct |
107 |
Correct |
5 ms |
16988 KB |
Output is correct |
108 |
Correct |
66 ms |
28244 KB |
Output is correct |
109 |
Correct |
66 ms |
28308 KB |
Output is correct |
110 |
Correct |
92 ms |
28244 KB |
Output is correct |
111 |
Correct |
70 ms |
28248 KB |
Output is correct |
112 |
Correct |
85 ms |
28244 KB |
Output is correct |
113 |
Correct |
95 ms |
33788 KB |
Output is correct |
114 |
Correct |
80 ms |
32032 KB |
Output is correct |
115 |
Correct |
71 ms |
31060 KB |
Output is correct |
116 |
Correct |
81 ms |
29964 KB |
Output is correct |
117 |
Correct |
75 ms |
28128 KB |
Output is correct |
118 |
Correct |
61 ms |
28240 KB |
Output is correct |
119 |
Correct |
63 ms |
28492 KB |
Output is correct |
120 |
Correct |
59 ms |
28244 KB |
Output is correct |
121 |
Correct |
59 ms |
27608 KB |
Output is correct |
122 |
Correct |
63 ms |
26704 KB |
Output is correct |
123 |
Correct |
37 ms |
24040 KB |
Output is correct |
124 |
Correct |
60 ms |
28928 KB |
Output is correct |
125 |
Correct |
49 ms |
28728 KB |
Output is correct |
126 |
Correct |
64 ms |
28824 KB |
Output is correct |
127 |
Correct |
48 ms |
28736 KB |
Output is correct |
128 |
Correct |
5 ms |
16984 KB |
Output is correct |
129 |
Correct |
5 ms |
16988 KB |
Output is correct |
130 |
Correct |
5 ms |
16988 KB |
Output is correct |
131 |
Correct |
6 ms |
17240 KB |
Output is correct |
132 |
Correct |
5 ms |
16988 KB |
Output is correct |
133 |
Correct |
5 ms |
16988 KB |
Output is correct |
134 |
Correct |
5 ms |
16988 KB |
Output is correct |
135 |
Correct |
5 ms |
16988 KB |
Output is correct |
136 |
Correct |
5 ms |
16988 KB |
Output is correct |
137 |
Correct |
5 ms |
16988 KB |
Output is correct |
138 |
Correct |
5 ms |
16984 KB |
Output is correct |
139 |
Correct |
5 ms |
16988 KB |
Output is correct |
140 |
Correct |
5 ms |
16988 KB |
Output is correct |
141 |
Correct |
5 ms |
16988 KB |
Output is correct |
142 |
Correct |
5 ms |
16988 KB |
Output is correct |
143 |
Correct |
6 ms |
16988 KB |
Output is correct |
144 |
Correct |
6 ms |
17244 KB |
Output is correct |
145 |
Correct |
5 ms |
16988 KB |
Output is correct |
146 |
Correct |
5 ms |
16988 KB |
Output is correct |
147 |
Correct |
6 ms |
16984 KB |
Output is correct |
148 |
Correct |
5 ms |
17056 KB |
Output is correct |
149 |
Correct |
5 ms |
16988 KB |
Output is correct |
150 |
Correct |
5 ms |
16988 KB |
Output is correct |
151 |
Correct |
5 ms |
16988 KB |
Output is correct |
152 |
Correct |
5 ms |
16988 KB |
Output is correct |
153 |
Correct |
5 ms |
16988 KB |
Output is correct |
154 |
Correct |
5 ms |
16988 KB |
Output is correct |
155 |
Correct |
60 ms |
28260 KB |
Output is correct |
156 |
Correct |
81 ms |
28368 KB |
Output is correct |
157 |
Correct |
69 ms |
27476 KB |
Output is correct |
158 |
Correct |
64 ms |
28240 KB |
Output is correct |
159 |
Correct |
56 ms |
27116 KB |
Output is correct |
160 |
Correct |
56 ms |
26540 KB |
Output is correct |
161 |
Correct |
51 ms |
26452 KB |
Output is correct |
162 |
Correct |
59 ms |
26096 KB |
Output is correct |
163 |
Correct |
56 ms |
25940 KB |
Output is correct |
164 |
Correct |
48 ms |
25936 KB |
Output is correct |
165 |
Correct |
49 ms |
25684 KB |
Output is correct |
166 |
Correct |
46 ms |
25772 KB |
Output is correct |
167 |
Correct |
44 ms |
25712 KB |
Output is correct |
168 |
Correct |
47 ms |
27852 KB |
Output is correct |
169 |
Correct |
102 ms |
33276 KB |
Output is correct |
170 |
Correct |
85 ms |
31828 KB |
Output is correct |
171 |
Correct |
71 ms |
32208 KB |
Output is correct |
172 |
Correct |
71 ms |
30960 KB |
Output is correct |
173 |
Correct |
67 ms |
28236 KB |
Output is correct |
174 |
Correct |
70 ms |
28224 KB |
Output is correct |
175 |
Correct |
84 ms |
28240 KB |
Output is correct |
176 |
Correct |
70 ms |
27728 KB |
Output is correct |
177 |
Correct |
51 ms |
26708 KB |
Output is correct |
178 |
Correct |
63 ms |
29260 KB |
Output is correct |
179 |
Correct |
65 ms |
29136 KB |
Output is correct |
180 |
Correct |
61 ms |
28612 KB |
Output is correct |
181 |
Correct |
68 ms |
28696 KB |
Output is correct |
182 |
Correct |
5 ms |
16988 KB |
Output is correct |
183 |
Correct |
5 ms |
16988 KB |
Output is correct |
184 |
Correct |
6 ms |
16988 KB |
Output is correct |
185 |
Correct |
5 ms |
16988 KB |
Output is correct |
186 |
Correct |
5 ms |
17128 KB |
Output is correct |
187 |
Correct |
5 ms |
16988 KB |
Output is correct |
188 |
Correct |
5 ms |
16988 KB |
Output is correct |
189 |
Correct |
5 ms |
16988 KB |
Output is correct |
190 |
Correct |
5 ms |
16988 KB |
Output is correct |
191 |
Correct |
5 ms |
16988 KB |
Output is correct |
192 |
Correct |
5 ms |
16988 KB |
Output is correct |
193 |
Correct |
5 ms |
17064 KB |
Output is correct |
194 |
Correct |
6 ms |
16988 KB |
Output is correct |
195 |
Correct |
5 ms |
16988 KB |
Output is correct |
196 |
Correct |
5 ms |
16988 KB |
Output is correct |
197 |
Correct |
5 ms |
17240 KB |
Output is correct |
198 |
Correct |
5 ms |
16988 KB |
Output is correct |
199 |
Correct |
5 ms |
16988 KB |
Output is correct |
200 |
Correct |
5 ms |
16988 KB |
Output is correct |
201 |
Correct |
5 ms |
16988 KB |
Output is correct |
202 |
Correct |
5 ms |
17160 KB |
Output is correct |
203 |
Correct |
6 ms |
16984 KB |
Output is correct |
204 |
Correct |
6 ms |
16988 KB |
Output is correct |
205 |
Correct |
5 ms |
16988 KB |
Output is correct |
206 |
Correct |
5 ms |
16988 KB |
Output is correct |
207 |
Correct |
5 ms |
16984 KB |
Output is correct |
208 |
Correct |
5 ms |
16984 KB |
Output is correct |
209 |
Correct |
6 ms |
17296 KB |
Output is correct |
210 |
Correct |
35 ms |
24144 KB |
Output is correct |
211 |
Correct |
70 ms |
29132 KB |
Output is correct |
212 |
Correct |
86 ms |
32672 KB |
Output is correct |
213 |
Correct |
133 ms |
35616 KB |
Output is correct |
214 |
Correct |
39 ms |
27224 KB |
Output is correct |
215 |
Correct |
40 ms |
27220 KB |
Output is correct |
216 |
Correct |
71 ms |
29012 KB |
Output is correct |
217 |
Correct |
90 ms |
27700 KB |
Output is correct |
218 |
Correct |
52 ms |
26192 KB |
Output is correct |
219 |
Correct |
48 ms |
25716 KB |
Output is correct |
220 |
Correct |
51 ms |
25692 KB |
Output is correct |
221 |
Correct |
49 ms |
25548 KB |
Output is correct |
222 |
Correct |
63 ms |
26812 KB |
Output is correct |
223 |
Correct |
69 ms |
30248 KB |
Output is correct |
224 |
Correct |
68 ms |
29460 KB |
Output is correct |
225 |
Correct |
71 ms |
27520 KB |
Output is correct |
226 |
Correct |
59 ms |
27524 KB |
Output is correct |
227 |
Correct |
62 ms |
27472 KB |
Output is correct |
228 |
Correct |
56 ms |
26704 KB |
Output is correct |
229 |
Correct |
52 ms |
26196 KB |
Output is correct |
230 |
Correct |
58 ms |
27592 KB |
Output is correct |
231 |
Correct |
80 ms |
27732 KB |
Output is correct |