#include<bits/stdc++.h>
using namespace std;
const long long maxn=200000+10;
vector<long long>adj[maxn],fakeadj[maxn],unnow;
long long n,m,vis[maxn],high[maxn],sz[maxn],newnode,low[maxn],wh[maxn],timea;
long long mainres=0,fn=0;
void vorod(){
cin>>n>>m;
for(long long i=0;i<m;i++){
long long u,v;
cin>>u>>v;
adj[u].push_back(v);
adj[v].push_back(u);
}
}
void predfs(long long u){
if(vis[u]==1){
return ;
}
fn++;
vis[u]=1;
timea++;
wh[u]=low[u]=timea;
unnow.push_back(u);
for(auto x:adj[u]){
if(vis[x]){
low[u]=min(low[u],wh[x]);
}else{
predfs(x);
low[u]=min(low[u],low[x]);
if(low[x]>=wh[u]){
// cout<<"wtf: "<<u<<" "<<x<<endl;
fakeadj[u].push_back(newnode);
while((long long)fakeadj[newnode].size()==0||fakeadj[newnode].back()!=x){
fakeadj[newnode].push_back(unnow.back());
unnow.pop_back();
}
newnode++;
}
}
}
//cout<<"magemishe: "<<u<<" "<<wh[u]<<" "<<low[u]<<endl;
}
void dfssolve(long long u){
vis[u]=1;
sz[u]=(u<=n);
for(auto x:fakeadj[u]){
dfssolve(x);
sz[u]+=sz[x];
if(u>n){
mainres-=sz[x]*(sz[x]-1)*((long long)fakeadj[u].size());
}
}
if(u>n){
mainres-=(long long)fakeadj[u].size()*(fn-sz[u])*(fn-sz[u]-1);
}
//cout<<u<<" "<<sz[u]<<" "<<(long long)fakeadj[u].size()<<endl;
}
void pre(){
newnode=n+1;
for(long long i=1;i<=n;i++){
if(vis[i]==0){
fn=0;
predfs(i);
dfssolve(i);
mainres+=fn*(fn-1)*(fn-2);
}
}
for(long long i=1;i<=n;i++){
vis[i]=0;
}
}
void solve(){
//mainres+=n*(n-1)*(n-2);
/*for(long long i=1;i<=n;i++){
if(vis[i]==0){
dfssolve(i);
}
}*/
cout<<mainres<<"\n";
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vorod();
pre();
solve();
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15452 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
3 ms |
15452 KB |
Output is correct |
4 |
Correct |
2 ms |
15408 KB |
Output is correct |
5 |
Correct |
3 ms |
15456 KB |
Output is correct |
6 |
Correct |
2 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
3 ms |
15452 KB |
Output is correct |
10 |
Correct |
3 ms |
15452 KB |
Output is correct |
11 |
Correct |
3 ms |
15460 KB |
Output is correct |
12 |
Correct |
3 ms |
15452 KB |
Output is correct |
13 |
Correct |
2 ms |
15452 KB |
Output is correct |
14 |
Correct |
3 ms |
15448 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
3 ms |
15452 KB |
Output is correct |
17 |
Correct |
3 ms |
15452 KB |
Output is correct |
18 |
Correct |
3 ms |
15400 KB |
Output is correct |
19 |
Correct |
3 ms |
15452 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
21 |
Correct |
3 ms |
15452 KB |
Output is correct |
22 |
Correct |
2 ms |
15452 KB |
Output is correct |
23 |
Correct |
2 ms |
15452 KB |
Output is correct |
24 |
Correct |
2 ms |
15284 KB |
Output is correct |
25 |
Correct |
2 ms |
15448 KB |
Output is correct |
26 |
Correct |
2 ms |
15452 KB |
Output is correct |
27 |
Correct |
3 ms |
15344 KB |
Output is correct |
28 |
Correct |
2 ms |
15448 KB |
Output is correct |
29 |
Correct |
2 ms |
15452 KB |
Output is correct |
30 |
Correct |
2 ms |
15452 KB |
Output is correct |
31 |
Correct |
2 ms |
15452 KB |
Output is correct |
32 |
Correct |
2 ms |
15452 KB |
Output is correct |
33 |
Correct |
2 ms |
15452 KB |
Output is correct |
34 |
Correct |
3 ms |
15436 KB |
Output is correct |
35 |
Correct |
3 ms |
15452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15452 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
3 ms |
15452 KB |
Output is correct |
4 |
Correct |
2 ms |
15408 KB |
Output is correct |
5 |
Correct |
3 ms |
15456 KB |
Output is correct |
6 |
Correct |
2 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
3 ms |
15452 KB |
Output is correct |
10 |
Correct |
3 ms |
15452 KB |
Output is correct |
11 |
Correct |
3 ms |
15460 KB |
Output is correct |
12 |
Correct |
3 ms |
15452 KB |
Output is correct |
13 |
Correct |
2 ms |
15452 KB |
Output is correct |
14 |
Correct |
3 ms |
15448 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
3 ms |
15452 KB |
Output is correct |
17 |
Correct |
3 ms |
15452 KB |
Output is correct |
18 |
Correct |
3 ms |
15400 KB |
Output is correct |
19 |
Correct |
3 ms |
15452 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
21 |
Correct |
3 ms |
15452 KB |
Output is correct |
22 |
Correct |
2 ms |
15452 KB |
Output is correct |
23 |
Correct |
2 ms |
15452 KB |
Output is correct |
24 |
Correct |
2 ms |
15284 KB |
Output is correct |
25 |
Correct |
2 ms |
15448 KB |
Output is correct |
26 |
Correct |
2 ms |
15452 KB |
Output is correct |
27 |
Correct |
3 ms |
15344 KB |
Output is correct |
28 |
Correct |
2 ms |
15448 KB |
Output is correct |
29 |
Correct |
2 ms |
15452 KB |
Output is correct |
30 |
Correct |
2 ms |
15452 KB |
Output is correct |
31 |
Correct |
2 ms |
15452 KB |
Output is correct |
32 |
Correct |
2 ms |
15452 KB |
Output is correct |
33 |
Correct |
2 ms |
15452 KB |
Output is correct |
34 |
Correct |
3 ms |
15436 KB |
Output is correct |
35 |
Correct |
3 ms |
15452 KB |
Output is correct |
36 |
Correct |
2 ms |
15448 KB |
Output is correct |
37 |
Correct |
2 ms |
15452 KB |
Output is correct |
38 |
Correct |
3 ms |
15452 KB |
Output is correct |
39 |
Correct |
3 ms |
15444 KB |
Output is correct |
40 |
Correct |
2 ms |
15452 KB |
Output is correct |
41 |
Correct |
2 ms |
15452 KB |
Output is correct |
42 |
Correct |
3 ms |
15452 KB |
Output is correct |
43 |
Correct |
2 ms |
15452 KB |
Output is correct |
44 |
Correct |
3 ms |
15452 KB |
Output is correct |
45 |
Correct |
2 ms |
15452 KB |
Output is correct |
46 |
Correct |
3 ms |
15452 KB |
Output is correct |
47 |
Correct |
2 ms |
15464 KB |
Output is correct |
48 |
Correct |
2 ms |
15452 KB |
Output is correct |
49 |
Correct |
2 ms |
15452 KB |
Output is correct |
50 |
Correct |
2 ms |
15452 KB |
Output is correct |
51 |
Correct |
2 ms |
15440 KB |
Output is correct |
52 |
Correct |
2 ms |
15452 KB |
Output is correct |
53 |
Correct |
2 ms |
15452 KB |
Output is correct |
54 |
Correct |
2 ms |
15452 KB |
Output is correct |
55 |
Correct |
2 ms |
15448 KB |
Output is correct |
56 |
Correct |
3 ms |
15452 KB |
Output is correct |
57 |
Correct |
2 ms |
15452 KB |
Output is correct |
58 |
Correct |
2 ms |
15452 KB |
Output is correct |
59 |
Correct |
3 ms |
15452 KB |
Output is correct |
60 |
Correct |
2 ms |
15452 KB |
Output is correct |
61 |
Correct |
3 ms |
15452 KB |
Output is correct |
62 |
Correct |
2 ms |
15452 KB |
Output is correct |
63 |
Correct |
3 ms |
15452 KB |
Output is correct |
64 |
Correct |
2 ms |
15456 KB |
Output is correct |
65 |
Correct |
2 ms |
15452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
34 ms |
29004 KB |
Output is correct |
2 |
Correct |
39 ms |
28876 KB |
Output is correct |
3 |
Correct |
45 ms |
27764 KB |
Output is correct |
4 |
Correct |
40 ms |
29592 KB |
Output is correct |
5 |
Correct |
47 ms |
26068 KB |
Output is correct |
6 |
Correct |
61 ms |
28504 KB |
Output is correct |
7 |
Correct |
37 ms |
26932 KB |
Output is correct |
8 |
Correct |
40 ms |
27352 KB |
Output is correct |
9 |
Correct |
37 ms |
25564 KB |
Output is correct |
10 |
Correct |
39 ms |
25296 KB |
Output is correct |
11 |
Correct |
30 ms |
23000 KB |
Output is correct |
12 |
Correct |
28 ms |
23000 KB |
Output is correct |
13 |
Correct |
26 ms |
23000 KB |
Output is correct |
14 |
Correct |
26 ms |
22736 KB |
Output is correct |
15 |
Correct |
24 ms |
21716 KB |
Output is correct |
16 |
Correct |
21 ms |
21460 KB |
Output is correct |
17 |
Correct |
4 ms |
16860 KB |
Output is correct |
18 |
Correct |
5 ms |
16856 KB |
Output is correct |
19 |
Correct |
4 ms |
16864 KB |
Output is correct |
20 |
Correct |
4 ms |
16864 KB |
Output is correct |
21 |
Correct |
4 ms |
16856 KB |
Output is correct |
22 |
Correct |
4 ms |
16816 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15452 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
2 ms |
15400 KB |
Output is correct |
4 |
Correct |
2 ms |
15452 KB |
Output is correct |
5 |
Correct |
3 ms |
15452 KB |
Output is correct |
6 |
Correct |
2 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
2 ms |
15452 KB |
Output is correct |
10 |
Correct |
2 ms |
15452 KB |
Output is correct |
11 |
Correct |
2 ms |
15452 KB |
Output is correct |
12 |
Correct |
3 ms |
15452 KB |
Output is correct |
13 |
Correct |
2 ms |
15452 KB |
Output is correct |
14 |
Correct |
2 ms |
15452 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
2 ms |
15452 KB |
Output is correct |
17 |
Correct |
2 ms |
15452 KB |
Output is correct |
18 |
Correct |
2 ms |
15452 KB |
Output is correct |
19 |
Correct |
2 ms |
15452 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
34 ms |
24668 KB |
Output is correct |
2 |
Correct |
41 ms |
24656 KB |
Output is correct |
3 |
Correct |
40 ms |
24664 KB |
Output is correct |
4 |
Correct |
32 ms |
24660 KB |
Output is correct |
5 |
Correct |
35 ms |
24616 KB |
Output is correct |
6 |
Correct |
43 ms |
32620 KB |
Output is correct |
7 |
Correct |
42 ms |
29900 KB |
Output is correct |
8 |
Correct |
39 ms |
28520 KB |
Output is correct |
9 |
Correct |
38 ms |
27344 KB |
Output is correct |
10 |
Correct |
37 ms |
24660 KB |
Output is correct |
11 |
Correct |
37 ms |
26100 KB |
Output is correct |
12 |
Correct |
39 ms |
25940 KB |
Output is correct |
13 |
Correct |
37 ms |
25948 KB |
Output is correct |
14 |
Correct |
34 ms |
25168 KB |
Output is correct |
15 |
Correct |
30 ms |
24616 KB |
Output is correct |
16 |
Correct |
20 ms |
21972 KB |
Output is correct |
17 |
Correct |
26 ms |
25032 KB |
Output is correct |
18 |
Correct |
25 ms |
25148 KB |
Output is correct |
19 |
Correct |
26 ms |
25512 KB |
Output is correct |
20 |
Correct |
27 ms |
25160 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15448 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
2 ms |
15452 KB |
Output is correct |
4 |
Correct |
4 ms |
15452 KB |
Output is correct |
5 |
Correct |
2 ms |
15540 KB |
Output is correct |
6 |
Correct |
3 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
3 ms |
15460 KB |
Output is correct |
10 |
Correct |
2 ms |
15452 KB |
Output is correct |
11 |
Correct |
3 ms |
15452 KB |
Output is correct |
12 |
Correct |
3 ms |
15540 KB |
Output is correct |
13 |
Correct |
4 ms |
15452 KB |
Output is correct |
14 |
Correct |
3 ms |
15452 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
2 ms |
15452 KB |
Output is correct |
17 |
Correct |
3 ms |
15448 KB |
Output is correct |
18 |
Correct |
3 ms |
15448 KB |
Output is correct |
19 |
Correct |
3 ms |
15444 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
21 |
Correct |
4 ms |
15452 KB |
Output is correct |
22 |
Correct |
2 ms |
15448 KB |
Output is correct |
23 |
Correct |
2 ms |
15452 KB |
Output is correct |
24 |
Correct |
2 ms |
15452 KB |
Output is correct |
25 |
Correct |
2 ms |
15452 KB |
Output is correct |
26 |
Correct |
2 ms |
15444 KB |
Output is correct |
27 |
Correct |
3 ms |
15452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
24712 KB |
Output is correct |
2 |
Correct |
45 ms |
24820 KB |
Output is correct |
3 |
Correct |
46 ms |
24100 KB |
Output is correct |
4 |
Correct |
45 ms |
22868 KB |
Output is correct |
5 |
Correct |
34 ms |
21788 KB |
Output is correct |
6 |
Correct |
36 ms |
21072 KB |
Output is correct |
7 |
Correct |
33 ms |
20816 KB |
Output is correct |
8 |
Correct |
36 ms |
20564 KB |
Output is correct |
9 |
Correct |
37 ms |
20416 KB |
Output is correct |
10 |
Correct |
35 ms |
20312 KB |
Output is correct |
11 |
Correct |
34 ms |
20280 KB |
Output is correct |
12 |
Correct |
28 ms |
20096 KB |
Output is correct |
13 |
Correct |
37 ms |
20392 KB |
Output is correct |
14 |
Correct |
40 ms |
22180 KB |
Output is correct |
15 |
Correct |
65 ms |
29524 KB |
Output is correct |
16 |
Correct |
65 ms |
27612 KB |
Output is correct |
17 |
Correct |
58 ms |
28064 KB |
Output is correct |
18 |
Correct |
44 ms |
26544 KB |
Output is correct |
19 |
Correct |
41 ms |
22864 KB |
Output is correct |
20 |
Correct |
53 ms |
24372 KB |
Output is correct |
21 |
Correct |
52 ms |
24404 KB |
Output is correct |
22 |
Correct |
36 ms |
23636 KB |
Output is correct |
23 |
Correct |
31 ms |
22988 KB |
Output is correct |
24 |
Correct |
46 ms |
25080 KB |
Output is correct |
25 |
Correct |
40 ms |
25364 KB |
Output is correct |
26 |
Correct |
42 ms |
24580 KB |
Output is correct |
27 |
Correct |
42 ms |
24656 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15452 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
3 ms |
15452 KB |
Output is correct |
4 |
Correct |
2 ms |
15408 KB |
Output is correct |
5 |
Correct |
3 ms |
15456 KB |
Output is correct |
6 |
Correct |
2 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
3 ms |
15452 KB |
Output is correct |
10 |
Correct |
3 ms |
15452 KB |
Output is correct |
11 |
Correct |
3 ms |
15460 KB |
Output is correct |
12 |
Correct |
3 ms |
15452 KB |
Output is correct |
13 |
Correct |
2 ms |
15452 KB |
Output is correct |
14 |
Correct |
3 ms |
15448 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
3 ms |
15452 KB |
Output is correct |
17 |
Correct |
3 ms |
15452 KB |
Output is correct |
18 |
Correct |
3 ms |
15400 KB |
Output is correct |
19 |
Correct |
3 ms |
15452 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
21 |
Correct |
3 ms |
15452 KB |
Output is correct |
22 |
Correct |
2 ms |
15452 KB |
Output is correct |
23 |
Correct |
2 ms |
15452 KB |
Output is correct |
24 |
Correct |
2 ms |
15284 KB |
Output is correct |
25 |
Correct |
2 ms |
15448 KB |
Output is correct |
26 |
Correct |
2 ms |
15452 KB |
Output is correct |
27 |
Correct |
3 ms |
15344 KB |
Output is correct |
28 |
Correct |
2 ms |
15448 KB |
Output is correct |
29 |
Correct |
2 ms |
15452 KB |
Output is correct |
30 |
Correct |
2 ms |
15452 KB |
Output is correct |
31 |
Correct |
2 ms |
15452 KB |
Output is correct |
32 |
Correct |
2 ms |
15452 KB |
Output is correct |
33 |
Correct |
2 ms |
15452 KB |
Output is correct |
34 |
Correct |
3 ms |
15436 KB |
Output is correct |
35 |
Correct |
3 ms |
15452 KB |
Output is correct |
36 |
Correct |
2 ms |
15448 KB |
Output is correct |
37 |
Correct |
2 ms |
15452 KB |
Output is correct |
38 |
Correct |
3 ms |
15452 KB |
Output is correct |
39 |
Correct |
3 ms |
15444 KB |
Output is correct |
40 |
Correct |
2 ms |
15452 KB |
Output is correct |
41 |
Correct |
2 ms |
15452 KB |
Output is correct |
42 |
Correct |
3 ms |
15452 KB |
Output is correct |
43 |
Correct |
2 ms |
15452 KB |
Output is correct |
44 |
Correct |
3 ms |
15452 KB |
Output is correct |
45 |
Correct |
2 ms |
15452 KB |
Output is correct |
46 |
Correct |
3 ms |
15452 KB |
Output is correct |
47 |
Correct |
2 ms |
15464 KB |
Output is correct |
48 |
Correct |
2 ms |
15452 KB |
Output is correct |
49 |
Correct |
2 ms |
15452 KB |
Output is correct |
50 |
Correct |
2 ms |
15452 KB |
Output is correct |
51 |
Correct |
2 ms |
15440 KB |
Output is correct |
52 |
Correct |
2 ms |
15452 KB |
Output is correct |
53 |
Correct |
2 ms |
15452 KB |
Output is correct |
54 |
Correct |
2 ms |
15452 KB |
Output is correct |
55 |
Correct |
2 ms |
15448 KB |
Output is correct |
56 |
Correct |
3 ms |
15452 KB |
Output is correct |
57 |
Correct |
2 ms |
15452 KB |
Output is correct |
58 |
Correct |
2 ms |
15452 KB |
Output is correct |
59 |
Correct |
3 ms |
15452 KB |
Output is correct |
60 |
Correct |
2 ms |
15452 KB |
Output is correct |
61 |
Correct |
3 ms |
15452 KB |
Output is correct |
62 |
Correct |
2 ms |
15452 KB |
Output is correct |
63 |
Correct |
3 ms |
15452 KB |
Output is correct |
64 |
Correct |
2 ms |
15456 KB |
Output is correct |
65 |
Correct |
2 ms |
15452 KB |
Output is correct |
66 |
Correct |
2 ms |
15448 KB |
Output is correct |
67 |
Correct |
3 ms |
15452 KB |
Output is correct |
68 |
Correct |
2 ms |
15448 KB |
Output is correct |
69 |
Correct |
2 ms |
15492 KB |
Output is correct |
70 |
Correct |
3 ms |
15452 KB |
Output is correct |
71 |
Correct |
2 ms |
15452 KB |
Output is correct |
72 |
Correct |
3 ms |
15452 KB |
Output is correct |
73 |
Correct |
3 ms |
15452 KB |
Output is correct |
74 |
Correct |
2 ms |
15452 KB |
Output is correct |
75 |
Correct |
2 ms |
15452 KB |
Output is correct |
76 |
Correct |
2 ms |
15412 KB |
Output is correct |
77 |
Correct |
2 ms |
15452 KB |
Output is correct |
78 |
Correct |
2 ms |
15448 KB |
Output is correct |
79 |
Correct |
3 ms |
15452 KB |
Output is correct |
80 |
Correct |
2 ms |
15504 KB |
Output is correct |
81 |
Correct |
2 ms |
15452 KB |
Output is correct |
82 |
Correct |
3 ms |
15452 KB |
Output is correct |
83 |
Correct |
3 ms |
15452 KB |
Output is correct |
84 |
Correct |
2 ms |
15452 KB |
Output is correct |
85 |
Correct |
2 ms |
15452 KB |
Output is correct |
86 |
Correct |
2 ms |
15452 KB |
Output is correct |
87 |
Correct |
2 ms |
15452 KB |
Output is correct |
88 |
Correct |
2 ms |
15552 KB |
Output is correct |
89 |
Correct |
2 ms |
15452 KB |
Output is correct |
90 |
Correct |
2 ms |
15452 KB |
Output is correct |
91 |
Correct |
2 ms |
15452 KB |
Output is correct |
92 |
Correct |
2 ms |
15452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
15452 KB |
Output is correct |
2 |
Correct |
2 ms |
15452 KB |
Output is correct |
3 |
Correct |
3 ms |
15452 KB |
Output is correct |
4 |
Correct |
2 ms |
15408 KB |
Output is correct |
5 |
Correct |
3 ms |
15456 KB |
Output is correct |
6 |
Correct |
2 ms |
15452 KB |
Output is correct |
7 |
Correct |
2 ms |
15452 KB |
Output is correct |
8 |
Correct |
2 ms |
15452 KB |
Output is correct |
9 |
Correct |
3 ms |
15452 KB |
Output is correct |
10 |
Correct |
3 ms |
15452 KB |
Output is correct |
11 |
Correct |
3 ms |
15460 KB |
Output is correct |
12 |
Correct |
3 ms |
15452 KB |
Output is correct |
13 |
Correct |
2 ms |
15452 KB |
Output is correct |
14 |
Correct |
3 ms |
15448 KB |
Output is correct |
15 |
Correct |
2 ms |
15452 KB |
Output is correct |
16 |
Correct |
3 ms |
15452 KB |
Output is correct |
17 |
Correct |
3 ms |
15452 KB |
Output is correct |
18 |
Correct |
3 ms |
15400 KB |
Output is correct |
19 |
Correct |
3 ms |
15452 KB |
Output is correct |
20 |
Correct |
2 ms |
15452 KB |
Output is correct |
21 |
Correct |
3 ms |
15452 KB |
Output is correct |
22 |
Correct |
2 ms |
15452 KB |
Output is correct |
23 |
Correct |
2 ms |
15452 KB |
Output is correct |
24 |
Correct |
2 ms |
15284 KB |
Output is correct |
25 |
Correct |
2 ms |
15448 KB |
Output is correct |
26 |
Correct |
2 ms |
15452 KB |
Output is correct |
27 |
Correct |
3 ms |
15344 KB |
Output is correct |
28 |
Correct |
2 ms |
15448 KB |
Output is correct |
29 |
Correct |
2 ms |
15452 KB |
Output is correct |
30 |
Correct |
2 ms |
15452 KB |
Output is correct |
31 |
Correct |
2 ms |
15452 KB |
Output is correct |
32 |
Correct |
2 ms |
15452 KB |
Output is correct |
33 |
Correct |
2 ms |
15452 KB |
Output is correct |
34 |
Correct |
3 ms |
15436 KB |
Output is correct |
35 |
Correct |
3 ms |
15452 KB |
Output is correct |
36 |
Correct |
2 ms |
15448 KB |
Output is correct |
37 |
Correct |
2 ms |
15452 KB |
Output is correct |
38 |
Correct |
3 ms |
15452 KB |
Output is correct |
39 |
Correct |
3 ms |
15444 KB |
Output is correct |
40 |
Correct |
2 ms |
15452 KB |
Output is correct |
41 |
Correct |
2 ms |
15452 KB |
Output is correct |
42 |
Correct |
3 ms |
15452 KB |
Output is correct |
43 |
Correct |
2 ms |
15452 KB |
Output is correct |
44 |
Correct |
3 ms |
15452 KB |
Output is correct |
45 |
Correct |
2 ms |
15452 KB |
Output is correct |
46 |
Correct |
3 ms |
15452 KB |
Output is correct |
47 |
Correct |
2 ms |
15464 KB |
Output is correct |
48 |
Correct |
2 ms |
15452 KB |
Output is correct |
49 |
Correct |
2 ms |
15452 KB |
Output is correct |
50 |
Correct |
2 ms |
15452 KB |
Output is correct |
51 |
Correct |
2 ms |
15440 KB |
Output is correct |
52 |
Correct |
2 ms |
15452 KB |
Output is correct |
53 |
Correct |
2 ms |
15452 KB |
Output is correct |
54 |
Correct |
2 ms |
15452 KB |
Output is correct |
55 |
Correct |
2 ms |
15448 KB |
Output is correct |
56 |
Correct |
3 ms |
15452 KB |
Output is correct |
57 |
Correct |
2 ms |
15452 KB |
Output is correct |
58 |
Correct |
2 ms |
15452 KB |
Output is correct |
59 |
Correct |
3 ms |
15452 KB |
Output is correct |
60 |
Correct |
2 ms |
15452 KB |
Output is correct |
61 |
Correct |
3 ms |
15452 KB |
Output is correct |
62 |
Correct |
2 ms |
15452 KB |
Output is correct |
63 |
Correct |
3 ms |
15452 KB |
Output is correct |
64 |
Correct |
2 ms |
15456 KB |
Output is correct |
65 |
Correct |
2 ms |
15452 KB |
Output is correct |
66 |
Correct |
34 ms |
29004 KB |
Output is correct |
67 |
Correct |
39 ms |
28876 KB |
Output is correct |
68 |
Correct |
45 ms |
27764 KB |
Output is correct |
69 |
Correct |
40 ms |
29592 KB |
Output is correct |
70 |
Correct |
47 ms |
26068 KB |
Output is correct |
71 |
Correct |
61 ms |
28504 KB |
Output is correct |
72 |
Correct |
37 ms |
26932 KB |
Output is correct |
73 |
Correct |
40 ms |
27352 KB |
Output is correct |
74 |
Correct |
37 ms |
25564 KB |
Output is correct |
75 |
Correct |
39 ms |
25296 KB |
Output is correct |
76 |
Correct |
30 ms |
23000 KB |
Output is correct |
77 |
Correct |
28 ms |
23000 KB |
Output is correct |
78 |
Correct |
26 ms |
23000 KB |
Output is correct |
79 |
Correct |
26 ms |
22736 KB |
Output is correct |
80 |
Correct |
24 ms |
21716 KB |
Output is correct |
81 |
Correct |
21 ms |
21460 KB |
Output is correct |
82 |
Correct |
4 ms |
16860 KB |
Output is correct |
83 |
Correct |
5 ms |
16856 KB |
Output is correct |
84 |
Correct |
4 ms |
16864 KB |
Output is correct |
85 |
Correct |
4 ms |
16864 KB |
Output is correct |
86 |
Correct |
4 ms |
16856 KB |
Output is correct |
87 |
Correct |
4 ms |
16816 KB |
Output is correct |
88 |
Correct |
2 ms |
15452 KB |
Output is correct |
89 |
Correct |
2 ms |
15452 KB |
Output is correct |
90 |
Correct |
2 ms |
15400 KB |
Output is correct |
91 |
Correct |
2 ms |
15452 KB |
Output is correct |
92 |
Correct |
3 ms |
15452 KB |
Output is correct |
93 |
Correct |
2 ms |
15452 KB |
Output is correct |
94 |
Correct |
2 ms |
15452 KB |
Output is correct |
95 |
Correct |
2 ms |
15452 KB |
Output is correct |
96 |
Correct |
2 ms |
15452 KB |
Output is correct |
97 |
Correct |
2 ms |
15452 KB |
Output is correct |
98 |
Correct |
2 ms |
15452 KB |
Output is correct |
99 |
Correct |
3 ms |
15452 KB |
Output is correct |
100 |
Correct |
2 ms |
15452 KB |
Output is correct |
101 |
Correct |
2 ms |
15452 KB |
Output is correct |
102 |
Correct |
2 ms |
15452 KB |
Output is correct |
103 |
Correct |
2 ms |
15452 KB |
Output is correct |
104 |
Correct |
2 ms |
15452 KB |
Output is correct |
105 |
Correct |
2 ms |
15452 KB |
Output is correct |
106 |
Correct |
2 ms |
15452 KB |
Output is correct |
107 |
Correct |
2 ms |
15452 KB |
Output is correct |
108 |
Correct |
34 ms |
24668 KB |
Output is correct |
109 |
Correct |
41 ms |
24656 KB |
Output is correct |
110 |
Correct |
40 ms |
24664 KB |
Output is correct |
111 |
Correct |
32 ms |
24660 KB |
Output is correct |
112 |
Correct |
35 ms |
24616 KB |
Output is correct |
113 |
Correct |
43 ms |
32620 KB |
Output is correct |
114 |
Correct |
42 ms |
29900 KB |
Output is correct |
115 |
Correct |
39 ms |
28520 KB |
Output is correct |
116 |
Correct |
38 ms |
27344 KB |
Output is correct |
117 |
Correct |
37 ms |
24660 KB |
Output is correct |
118 |
Correct |
37 ms |
26100 KB |
Output is correct |
119 |
Correct |
39 ms |
25940 KB |
Output is correct |
120 |
Correct |
37 ms |
25948 KB |
Output is correct |
121 |
Correct |
34 ms |
25168 KB |
Output is correct |
122 |
Correct |
30 ms |
24616 KB |
Output is correct |
123 |
Correct |
20 ms |
21972 KB |
Output is correct |
124 |
Correct |
26 ms |
25032 KB |
Output is correct |
125 |
Correct |
25 ms |
25148 KB |
Output is correct |
126 |
Correct |
26 ms |
25512 KB |
Output is correct |
127 |
Correct |
27 ms |
25160 KB |
Output is correct |
128 |
Correct |
2 ms |
15448 KB |
Output is correct |
129 |
Correct |
2 ms |
15452 KB |
Output is correct |
130 |
Correct |
2 ms |
15452 KB |
Output is correct |
131 |
Correct |
4 ms |
15452 KB |
Output is correct |
132 |
Correct |
2 ms |
15540 KB |
Output is correct |
133 |
Correct |
3 ms |
15452 KB |
Output is correct |
134 |
Correct |
2 ms |
15452 KB |
Output is correct |
135 |
Correct |
2 ms |
15452 KB |
Output is correct |
136 |
Correct |
3 ms |
15460 KB |
Output is correct |
137 |
Correct |
2 ms |
15452 KB |
Output is correct |
138 |
Correct |
3 ms |
15452 KB |
Output is correct |
139 |
Correct |
3 ms |
15540 KB |
Output is correct |
140 |
Correct |
4 ms |
15452 KB |
Output is correct |
141 |
Correct |
3 ms |
15452 KB |
Output is correct |
142 |
Correct |
2 ms |
15452 KB |
Output is correct |
143 |
Correct |
2 ms |
15452 KB |
Output is correct |
144 |
Correct |
3 ms |
15448 KB |
Output is correct |
145 |
Correct |
3 ms |
15448 KB |
Output is correct |
146 |
Correct |
3 ms |
15444 KB |
Output is correct |
147 |
Correct |
2 ms |
15452 KB |
Output is correct |
148 |
Correct |
4 ms |
15452 KB |
Output is correct |
149 |
Correct |
2 ms |
15448 KB |
Output is correct |
150 |
Correct |
2 ms |
15452 KB |
Output is correct |
151 |
Correct |
2 ms |
15452 KB |
Output is correct |
152 |
Correct |
2 ms |
15452 KB |
Output is correct |
153 |
Correct |
2 ms |
15444 KB |
Output is correct |
154 |
Correct |
3 ms |
15452 KB |
Output is correct |
155 |
Correct |
44 ms |
24712 KB |
Output is correct |
156 |
Correct |
45 ms |
24820 KB |
Output is correct |
157 |
Correct |
46 ms |
24100 KB |
Output is correct |
158 |
Correct |
45 ms |
22868 KB |
Output is correct |
159 |
Correct |
34 ms |
21788 KB |
Output is correct |
160 |
Correct |
36 ms |
21072 KB |
Output is correct |
161 |
Correct |
33 ms |
20816 KB |
Output is correct |
162 |
Correct |
36 ms |
20564 KB |
Output is correct |
163 |
Correct |
37 ms |
20416 KB |
Output is correct |
164 |
Correct |
35 ms |
20312 KB |
Output is correct |
165 |
Correct |
34 ms |
20280 KB |
Output is correct |
166 |
Correct |
28 ms |
20096 KB |
Output is correct |
167 |
Correct |
37 ms |
20392 KB |
Output is correct |
168 |
Correct |
40 ms |
22180 KB |
Output is correct |
169 |
Correct |
65 ms |
29524 KB |
Output is correct |
170 |
Correct |
65 ms |
27612 KB |
Output is correct |
171 |
Correct |
58 ms |
28064 KB |
Output is correct |
172 |
Correct |
44 ms |
26544 KB |
Output is correct |
173 |
Correct |
41 ms |
22864 KB |
Output is correct |
174 |
Correct |
53 ms |
24372 KB |
Output is correct |
175 |
Correct |
52 ms |
24404 KB |
Output is correct |
176 |
Correct |
36 ms |
23636 KB |
Output is correct |
177 |
Correct |
31 ms |
22988 KB |
Output is correct |
178 |
Correct |
46 ms |
25080 KB |
Output is correct |
179 |
Correct |
40 ms |
25364 KB |
Output is correct |
180 |
Correct |
42 ms |
24580 KB |
Output is correct |
181 |
Correct |
42 ms |
24656 KB |
Output is correct |
182 |
Correct |
2 ms |
15448 KB |
Output is correct |
183 |
Correct |
3 ms |
15452 KB |
Output is correct |
184 |
Correct |
2 ms |
15448 KB |
Output is correct |
185 |
Correct |
2 ms |
15492 KB |
Output is correct |
186 |
Correct |
3 ms |
15452 KB |
Output is correct |
187 |
Correct |
2 ms |
15452 KB |
Output is correct |
188 |
Correct |
3 ms |
15452 KB |
Output is correct |
189 |
Correct |
3 ms |
15452 KB |
Output is correct |
190 |
Correct |
2 ms |
15452 KB |
Output is correct |
191 |
Correct |
2 ms |
15452 KB |
Output is correct |
192 |
Correct |
2 ms |
15412 KB |
Output is correct |
193 |
Correct |
2 ms |
15452 KB |
Output is correct |
194 |
Correct |
2 ms |
15448 KB |
Output is correct |
195 |
Correct |
3 ms |
15452 KB |
Output is correct |
196 |
Correct |
2 ms |
15504 KB |
Output is correct |
197 |
Correct |
2 ms |
15452 KB |
Output is correct |
198 |
Correct |
3 ms |
15452 KB |
Output is correct |
199 |
Correct |
3 ms |
15452 KB |
Output is correct |
200 |
Correct |
2 ms |
15452 KB |
Output is correct |
201 |
Correct |
2 ms |
15452 KB |
Output is correct |
202 |
Correct |
2 ms |
15452 KB |
Output is correct |
203 |
Correct |
2 ms |
15452 KB |
Output is correct |
204 |
Correct |
2 ms |
15552 KB |
Output is correct |
205 |
Correct |
2 ms |
15452 KB |
Output is correct |
206 |
Correct |
2 ms |
15452 KB |
Output is correct |
207 |
Correct |
2 ms |
15452 KB |
Output is correct |
208 |
Correct |
2 ms |
15452 KB |
Output is correct |
209 |
Correct |
4 ms |
16856 KB |
Output is correct |
210 |
Correct |
22 ms |
21456 KB |
Output is correct |
211 |
Correct |
38 ms |
25324 KB |
Output is correct |
212 |
Correct |
48 ms |
28788 KB |
Output is correct |
213 |
Correct |
55 ms |
31136 KB |
Output is correct |
214 |
Correct |
28 ms |
23512 KB |
Output is correct |
215 |
Correct |
29 ms |
23512 KB |
Output is correct |
216 |
Correct |
40 ms |
24712 KB |
Output is correct |
217 |
Correct |
40 ms |
23380 KB |
Output is correct |
218 |
Correct |
32 ms |
21840 KB |
Output is correct |
219 |
Correct |
30 ms |
21588 KB |
Output is correct |
220 |
Correct |
30 ms |
21328 KB |
Output is correct |
221 |
Correct |
28 ms |
21340 KB |
Output is correct |
222 |
Correct |
30 ms |
22488 KB |
Output is correct |
223 |
Correct |
48 ms |
26084 KB |
Output is correct |
224 |
Correct |
44 ms |
25304 KB |
Output is correct |
225 |
Correct |
40 ms |
23120 KB |
Output is correct |
226 |
Correct |
41 ms |
23096 KB |
Output is correct |
227 |
Correct |
39 ms |
23120 KB |
Output is correct |
228 |
Correct |
34 ms |
22608 KB |
Output is correct |
229 |
Correct |
34 ms |
22220 KB |
Output is correct |
230 |
Correct |
37 ms |
23020 KB |
Output is correct |
231 |
Correct |
40 ms |
23124 KB |
Output is correct |