#include <bits/stdc++.h>
using namespace std;
#define N 200010
#define ll long long
#define fs first
#define sc second
#define ii pair<int,int>
#define pb push_back
ll ans=0;
ll cc,times,num[N],low[N],n,m,ktr[N],dem,sz[N],child[N];
vector<int>g[N],edge[N];
stack<int>st;
void visit(int u)
{
num[u]=low[u]=++times;
for(auto v:g[u])
if(num[v]!=0)
{
low[u]=min(low[u],num[v]);
}else
{
st.push(u);
visit(v);
low[u]=min(low[u],low[v]);
if(low[v]==num[u])
{
int k;
dem++;
do{
k=st.top();
st.pop();
if(ktr[k]!=dem)
{
sz[dem]++;
ktr[k]=dem;
edge[dem].pb(k);
edge[k].pb(dem);
// cout<<k<<" "<<dem<<endl;
}
}while(k!=u);
}
}
st.push(u);
}
void build(int u,int p)
{
ktr[u]=1;
child[u]=(u<=n);
//cout<<u<<" "<<child[u]<<endl;
for(auto v:edge[u])
if(v!=p)
{
build(v,u);
child[u]+=child[v];
}
}
void DFS(int u,int p)
{
ktr[u]=1;
if(u<=n)
{
ll sum=cc-1;
for(auto v:edge[u])
if(v!=p)
{
sum-=child[v];
ans+=1ll*sum*child[v];
// cout<<sum<<" "<<child[v]<<endl;
}
}else
{
ll sum=cc;
for(auto v:edge[u])
if(v!=p)
{
sum-=child[v];
ans+=1ll*sum*child[v]*(sz[u]-2);
// cout<<u<<" "<<sum<<" "<<child[v]<<" "<<sz[u]-2<<" "<<sum*child[v]*(sz[u]-2)<<endl;
// cout<<u<<" "<<sum<<" "<<child[v]<<" "<<sz[u]<<endl;
}
}
//cout<<u<<" "<<ans*2<<endl;
for(auto v:edge[u])
if(v!=p)
DFS(v,u);
}
int main()
{
#ifdef SKY
freopen("A.inp","r",stdin);
freopen("A.out","w",stdout);
#endif // SKY
ios::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(NULL);
cin>>n>>m;
for(int i=1;i<=m;i++)
{
int u,v;
cin>>u>>v;
g[u].pb(v);
g[v].pb(u);
}
dem=n;
for(int i=1;i<=n;i++)
if(num[i]==0)
visit(i);
// cout<<dem<<endl;
memset(ktr,0,sizeof(ktr));
for(int i=1;i<=n;i++)
if(ktr[i]==0)
build(i,0);
memset(ktr,0,sizeof(ktr));
for(int i=1;i<=n;i++)
if(ktr[i]==0)
cc=child[i],DFS(i,0);
cout<<ans*2;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11220 KB |
Output is correct |
2 |
Correct |
7 ms |
11256 KB |
Output is correct |
3 |
Correct |
6 ms |
11220 KB |
Output is correct |
4 |
Correct |
6 ms |
11256 KB |
Output is correct |
5 |
Correct |
6 ms |
11260 KB |
Output is correct |
6 |
Correct |
6 ms |
11256 KB |
Output is correct |
7 |
Correct |
6 ms |
11220 KB |
Output is correct |
8 |
Correct |
7 ms |
11220 KB |
Output is correct |
9 |
Correct |
6 ms |
11256 KB |
Output is correct |
10 |
Correct |
6 ms |
11220 KB |
Output is correct |
11 |
Correct |
6 ms |
11220 KB |
Output is correct |
12 |
Correct |
7 ms |
11260 KB |
Output is correct |
13 |
Correct |
6 ms |
11212 KB |
Output is correct |
14 |
Correct |
6 ms |
11220 KB |
Output is correct |
15 |
Correct |
7 ms |
11220 KB |
Output is correct |
16 |
Correct |
6 ms |
11256 KB |
Output is correct |
17 |
Correct |
6 ms |
11220 KB |
Output is correct |
18 |
Correct |
6 ms |
11220 KB |
Output is correct |
19 |
Correct |
6 ms |
11220 KB |
Output is correct |
20 |
Correct |
6 ms |
11220 KB |
Output is correct |
21 |
Correct |
6 ms |
11256 KB |
Output is correct |
22 |
Correct |
6 ms |
11260 KB |
Output is correct |
23 |
Correct |
6 ms |
11252 KB |
Output is correct |
24 |
Correct |
6 ms |
11220 KB |
Output is correct |
25 |
Correct |
6 ms |
11264 KB |
Output is correct |
26 |
Correct |
7 ms |
11220 KB |
Output is correct |
27 |
Correct |
6 ms |
11184 KB |
Output is correct |
28 |
Correct |
6 ms |
11220 KB |
Output is correct |
29 |
Correct |
6 ms |
11220 KB |
Output is correct |
30 |
Correct |
7 ms |
11260 KB |
Output is correct |
31 |
Correct |
6 ms |
11220 KB |
Output is correct |
32 |
Correct |
8 ms |
11260 KB |
Output is correct |
33 |
Correct |
6 ms |
11264 KB |
Output is correct |
34 |
Correct |
7 ms |
11224 KB |
Output is correct |
35 |
Correct |
7 ms |
11256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11220 KB |
Output is correct |
2 |
Correct |
7 ms |
11256 KB |
Output is correct |
3 |
Correct |
6 ms |
11220 KB |
Output is correct |
4 |
Correct |
6 ms |
11256 KB |
Output is correct |
5 |
Correct |
6 ms |
11260 KB |
Output is correct |
6 |
Correct |
6 ms |
11256 KB |
Output is correct |
7 |
Correct |
6 ms |
11220 KB |
Output is correct |
8 |
Correct |
7 ms |
11220 KB |
Output is correct |
9 |
Correct |
6 ms |
11256 KB |
Output is correct |
10 |
Correct |
6 ms |
11220 KB |
Output is correct |
11 |
Correct |
6 ms |
11220 KB |
Output is correct |
12 |
Correct |
7 ms |
11260 KB |
Output is correct |
13 |
Correct |
6 ms |
11212 KB |
Output is correct |
14 |
Correct |
6 ms |
11220 KB |
Output is correct |
15 |
Correct |
7 ms |
11220 KB |
Output is correct |
16 |
Correct |
6 ms |
11256 KB |
Output is correct |
17 |
Correct |
6 ms |
11220 KB |
Output is correct |
18 |
Correct |
6 ms |
11220 KB |
Output is correct |
19 |
Correct |
6 ms |
11220 KB |
Output is correct |
20 |
Correct |
6 ms |
11220 KB |
Output is correct |
21 |
Correct |
6 ms |
11256 KB |
Output is correct |
22 |
Correct |
6 ms |
11260 KB |
Output is correct |
23 |
Correct |
6 ms |
11252 KB |
Output is correct |
24 |
Correct |
6 ms |
11220 KB |
Output is correct |
25 |
Correct |
6 ms |
11264 KB |
Output is correct |
26 |
Correct |
7 ms |
11220 KB |
Output is correct |
27 |
Correct |
6 ms |
11184 KB |
Output is correct |
28 |
Correct |
6 ms |
11220 KB |
Output is correct |
29 |
Correct |
6 ms |
11220 KB |
Output is correct |
30 |
Correct |
7 ms |
11260 KB |
Output is correct |
31 |
Correct |
6 ms |
11220 KB |
Output is correct |
32 |
Correct |
8 ms |
11260 KB |
Output is correct |
33 |
Correct |
6 ms |
11264 KB |
Output is correct |
34 |
Correct |
7 ms |
11224 KB |
Output is correct |
35 |
Correct |
7 ms |
11256 KB |
Output is correct |
36 |
Correct |
6 ms |
11220 KB |
Output is correct |
37 |
Correct |
7 ms |
11220 KB |
Output is correct |
38 |
Correct |
7 ms |
11256 KB |
Output is correct |
39 |
Correct |
6 ms |
11220 KB |
Output is correct |
40 |
Correct |
6 ms |
11220 KB |
Output is correct |
41 |
Correct |
7 ms |
11260 KB |
Output is correct |
42 |
Correct |
7 ms |
11256 KB |
Output is correct |
43 |
Correct |
7 ms |
11220 KB |
Output is correct |
44 |
Correct |
6 ms |
11256 KB |
Output is correct |
45 |
Correct |
7 ms |
11220 KB |
Output is correct |
46 |
Correct |
9 ms |
11260 KB |
Output is correct |
47 |
Correct |
7 ms |
11220 KB |
Output is correct |
48 |
Correct |
6 ms |
11220 KB |
Output is correct |
49 |
Correct |
6 ms |
11256 KB |
Output is correct |
50 |
Correct |
7 ms |
11220 KB |
Output is correct |
51 |
Correct |
7 ms |
11260 KB |
Output is correct |
52 |
Correct |
7 ms |
11220 KB |
Output is correct |
53 |
Correct |
7 ms |
11260 KB |
Output is correct |
54 |
Correct |
7 ms |
11220 KB |
Output is correct |
55 |
Correct |
7 ms |
11256 KB |
Output is correct |
56 |
Correct |
7 ms |
11220 KB |
Output is correct |
57 |
Correct |
7 ms |
11220 KB |
Output is correct |
58 |
Correct |
7 ms |
11316 KB |
Output is correct |
59 |
Correct |
7 ms |
11256 KB |
Output is correct |
60 |
Correct |
7 ms |
11220 KB |
Output is correct |
61 |
Correct |
7 ms |
11216 KB |
Output is correct |
62 |
Correct |
6 ms |
11220 KB |
Output is correct |
63 |
Correct |
7 ms |
11220 KB |
Output is correct |
64 |
Correct |
6 ms |
11264 KB |
Output is correct |
65 |
Correct |
7 ms |
11256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
90 ms |
30092 KB |
Output is correct |
2 |
Correct |
90 ms |
30036 KB |
Output is correct |
3 |
Correct |
124 ms |
28928 KB |
Output is correct |
4 |
Correct |
86 ms |
29976 KB |
Output is correct |
5 |
Correct |
89 ms |
27080 KB |
Output is correct |
6 |
Correct |
96 ms |
29152 KB |
Output is correct |
7 |
Correct |
94 ms |
27176 KB |
Output is correct |
8 |
Correct |
98 ms |
27724 KB |
Output is correct |
9 |
Correct |
100 ms |
25720 KB |
Output is correct |
10 |
Correct |
89 ms |
25848 KB |
Output is correct |
11 |
Correct |
89 ms |
23340 KB |
Output is correct |
12 |
Correct |
84 ms |
23076 KB |
Output is correct |
13 |
Correct |
79 ms |
22944 KB |
Output is correct |
14 |
Correct |
72 ms |
22628 KB |
Output is correct |
15 |
Correct |
53 ms |
21460 KB |
Output is correct |
16 |
Correct |
54 ms |
21196 KB |
Output is correct |
17 |
Correct |
10 ms |
14036 KB |
Output is correct |
18 |
Correct |
9 ms |
14036 KB |
Output is correct |
19 |
Correct |
9 ms |
14076 KB |
Output is correct |
20 |
Correct |
9 ms |
14072 KB |
Output is correct |
21 |
Correct |
10 ms |
14176 KB |
Output is correct |
22 |
Correct |
10 ms |
14036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11348 KB |
Output is correct |
2 |
Correct |
6 ms |
11348 KB |
Output is correct |
3 |
Correct |
6 ms |
11412 KB |
Output is correct |
4 |
Correct |
7 ms |
11476 KB |
Output is correct |
5 |
Correct |
6 ms |
11476 KB |
Output is correct |
6 |
Correct |
7 ms |
11416 KB |
Output is correct |
7 |
Correct |
6 ms |
11476 KB |
Output is correct |
8 |
Correct |
6 ms |
11476 KB |
Output is correct |
9 |
Correct |
7 ms |
11476 KB |
Output is correct |
10 |
Correct |
6 ms |
11348 KB |
Output is correct |
11 |
Correct |
7 ms |
11476 KB |
Output is correct |
12 |
Correct |
7 ms |
11400 KB |
Output is correct |
13 |
Correct |
7 ms |
11392 KB |
Output is correct |
14 |
Correct |
6 ms |
11388 KB |
Output is correct |
15 |
Correct |
7 ms |
11348 KB |
Output is correct |
16 |
Correct |
7 ms |
11416 KB |
Output is correct |
17 |
Correct |
7 ms |
11348 KB |
Output is correct |
18 |
Correct |
7 ms |
11396 KB |
Output is correct |
19 |
Correct |
6 ms |
11396 KB |
Output is correct |
20 |
Correct |
7 ms |
11348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
101 ms |
24756 KB |
Output is correct |
2 |
Correct |
95 ms |
24780 KB |
Output is correct |
3 |
Correct |
96 ms |
24680 KB |
Output is correct |
4 |
Correct |
91 ms |
24880 KB |
Output is correct |
5 |
Correct |
99 ms |
24780 KB |
Output is correct |
6 |
Correct |
106 ms |
33140 KB |
Output is correct |
7 |
Correct |
106 ms |
30204 KB |
Output is correct |
8 |
Correct |
112 ms |
28744 KB |
Output is correct |
9 |
Correct |
112 ms |
27464 KB |
Output is correct |
10 |
Correct |
95 ms |
24732 KB |
Output is correct |
11 |
Correct |
101 ms |
25932 KB |
Output is correct |
12 |
Correct |
93 ms |
26064 KB |
Output is correct |
13 |
Correct |
98 ms |
25988 KB |
Output is correct |
14 |
Correct |
95 ms |
25276 KB |
Output is correct |
15 |
Correct |
77 ms |
24488 KB |
Output is correct |
16 |
Correct |
55 ms |
21520 KB |
Output is correct |
17 |
Correct |
71 ms |
26600 KB |
Output is correct |
18 |
Correct |
73 ms |
26612 KB |
Output is correct |
19 |
Correct |
69 ms |
26672 KB |
Output is correct |
20 |
Correct |
78 ms |
26548 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11348 KB |
Output is correct |
2 |
Correct |
7 ms |
11348 KB |
Output is correct |
3 |
Correct |
7 ms |
11348 KB |
Output is correct |
4 |
Correct |
9 ms |
11348 KB |
Output is correct |
5 |
Correct |
8 ms |
11348 KB |
Output is correct |
6 |
Correct |
6 ms |
11348 KB |
Output is correct |
7 |
Correct |
7 ms |
11348 KB |
Output is correct |
8 |
Correct |
7 ms |
11348 KB |
Output is correct |
9 |
Correct |
6 ms |
11348 KB |
Output is correct |
10 |
Correct |
7 ms |
11348 KB |
Output is correct |
11 |
Correct |
6 ms |
11348 KB |
Output is correct |
12 |
Correct |
7 ms |
11476 KB |
Output is correct |
13 |
Correct |
6 ms |
11380 KB |
Output is correct |
14 |
Correct |
7 ms |
11476 KB |
Output is correct |
15 |
Correct |
6 ms |
11456 KB |
Output is correct |
16 |
Correct |
7 ms |
11348 KB |
Output is correct |
17 |
Correct |
6 ms |
11348 KB |
Output is correct |
18 |
Correct |
6 ms |
11396 KB |
Output is correct |
19 |
Correct |
7 ms |
11396 KB |
Output is correct |
20 |
Correct |
7 ms |
11424 KB |
Output is correct |
21 |
Correct |
8 ms |
11476 KB |
Output is correct |
22 |
Correct |
6 ms |
11348 KB |
Output is correct |
23 |
Correct |
6 ms |
11348 KB |
Output is correct |
24 |
Correct |
6 ms |
11392 KB |
Output is correct |
25 |
Correct |
6 ms |
11260 KB |
Output is correct |
26 |
Correct |
6 ms |
11284 KB |
Output is correct |
27 |
Correct |
6 ms |
11220 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
110 ms |
24792 KB |
Output is correct |
2 |
Correct |
109 ms |
24640 KB |
Output is correct |
3 |
Correct |
103 ms |
23796 KB |
Output is correct |
4 |
Correct |
95 ms |
22796 KB |
Output is correct |
5 |
Correct |
107 ms |
21792 KB |
Output is correct |
6 |
Correct |
85 ms |
21344 KB |
Output is correct |
7 |
Correct |
81 ms |
21116 KB |
Output is correct |
8 |
Correct |
91 ms |
20904 KB |
Output is correct |
9 |
Correct |
87 ms |
20924 KB |
Output is correct |
10 |
Correct |
88 ms |
20724 KB |
Output is correct |
11 |
Correct |
72 ms |
20592 KB |
Output is correct |
12 |
Correct |
71 ms |
20760 KB |
Output is correct |
13 |
Correct |
70 ms |
20944 KB |
Output is correct |
14 |
Correct |
70 ms |
22928 KB |
Output is correct |
15 |
Correct |
110 ms |
29760 KB |
Output is correct |
16 |
Correct |
109 ms |
27780 KB |
Output is correct |
17 |
Correct |
104 ms |
28188 KB |
Output is correct |
18 |
Correct |
116 ms |
26524 KB |
Output is correct |
19 |
Correct |
95 ms |
22800 KB |
Output is correct |
20 |
Correct |
95 ms |
24304 KB |
Output is correct |
21 |
Correct |
125 ms |
24272 KB |
Output is correct |
22 |
Correct |
89 ms |
23692 KB |
Output is correct |
23 |
Correct |
85 ms |
23044 KB |
Output is correct |
24 |
Correct |
96 ms |
25644 KB |
Output is correct |
25 |
Correct |
101 ms |
25728 KB |
Output is correct |
26 |
Correct |
89 ms |
24956 KB |
Output is correct |
27 |
Correct |
95 ms |
24964 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11220 KB |
Output is correct |
2 |
Correct |
7 ms |
11256 KB |
Output is correct |
3 |
Correct |
6 ms |
11220 KB |
Output is correct |
4 |
Correct |
6 ms |
11256 KB |
Output is correct |
5 |
Correct |
6 ms |
11260 KB |
Output is correct |
6 |
Correct |
6 ms |
11256 KB |
Output is correct |
7 |
Correct |
6 ms |
11220 KB |
Output is correct |
8 |
Correct |
7 ms |
11220 KB |
Output is correct |
9 |
Correct |
6 ms |
11256 KB |
Output is correct |
10 |
Correct |
6 ms |
11220 KB |
Output is correct |
11 |
Correct |
6 ms |
11220 KB |
Output is correct |
12 |
Correct |
7 ms |
11260 KB |
Output is correct |
13 |
Correct |
6 ms |
11212 KB |
Output is correct |
14 |
Correct |
6 ms |
11220 KB |
Output is correct |
15 |
Correct |
7 ms |
11220 KB |
Output is correct |
16 |
Correct |
6 ms |
11256 KB |
Output is correct |
17 |
Correct |
6 ms |
11220 KB |
Output is correct |
18 |
Correct |
6 ms |
11220 KB |
Output is correct |
19 |
Correct |
6 ms |
11220 KB |
Output is correct |
20 |
Correct |
6 ms |
11220 KB |
Output is correct |
21 |
Correct |
6 ms |
11256 KB |
Output is correct |
22 |
Correct |
6 ms |
11260 KB |
Output is correct |
23 |
Correct |
6 ms |
11252 KB |
Output is correct |
24 |
Correct |
6 ms |
11220 KB |
Output is correct |
25 |
Correct |
6 ms |
11264 KB |
Output is correct |
26 |
Correct |
7 ms |
11220 KB |
Output is correct |
27 |
Correct |
6 ms |
11184 KB |
Output is correct |
28 |
Correct |
6 ms |
11220 KB |
Output is correct |
29 |
Correct |
6 ms |
11220 KB |
Output is correct |
30 |
Correct |
7 ms |
11260 KB |
Output is correct |
31 |
Correct |
6 ms |
11220 KB |
Output is correct |
32 |
Correct |
8 ms |
11260 KB |
Output is correct |
33 |
Correct |
6 ms |
11264 KB |
Output is correct |
34 |
Correct |
7 ms |
11224 KB |
Output is correct |
35 |
Correct |
7 ms |
11256 KB |
Output is correct |
36 |
Correct |
6 ms |
11220 KB |
Output is correct |
37 |
Correct |
7 ms |
11220 KB |
Output is correct |
38 |
Correct |
7 ms |
11256 KB |
Output is correct |
39 |
Correct |
6 ms |
11220 KB |
Output is correct |
40 |
Correct |
6 ms |
11220 KB |
Output is correct |
41 |
Correct |
7 ms |
11260 KB |
Output is correct |
42 |
Correct |
7 ms |
11256 KB |
Output is correct |
43 |
Correct |
7 ms |
11220 KB |
Output is correct |
44 |
Correct |
6 ms |
11256 KB |
Output is correct |
45 |
Correct |
7 ms |
11220 KB |
Output is correct |
46 |
Correct |
9 ms |
11260 KB |
Output is correct |
47 |
Correct |
7 ms |
11220 KB |
Output is correct |
48 |
Correct |
6 ms |
11220 KB |
Output is correct |
49 |
Correct |
6 ms |
11256 KB |
Output is correct |
50 |
Correct |
7 ms |
11220 KB |
Output is correct |
51 |
Correct |
7 ms |
11260 KB |
Output is correct |
52 |
Correct |
7 ms |
11220 KB |
Output is correct |
53 |
Correct |
7 ms |
11260 KB |
Output is correct |
54 |
Correct |
7 ms |
11220 KB |
Output is correct |
55 |
Correct |
7 ms |
11256 KB |
Output is correct |
56 |
Correct |
7 ms |
11220 KB |
Output is correct |
57 |
Correct |
7 ms |
11220 KB |
Output is correct |
58 |
Correct |
7 ms |
11316 KB |
Output is correct |
59 |
Correct |
7 ms |
11256 KB |
Output is correct |
60 |
Correct |
7 ms |
11220 KB |
Output is correct |
61 |
Correct |
7 ms |
11216 KB |
Output is correct |
62 |
Correct |
6 ms |
11220 KB |
Output is correct |
63 |
Correct |
7 ms |
11220 KB |
Output is correct |
64 |
Correct |
6 ms |
11264 KB |
Output is correct |
65 |
Correct |
7 ms |
11256 KB |
Output is correct |
66 |
Correct |
7 ms |
11220 KB |
Output is correct |
67 |
Correct |
6 ms |
11348 KB |
Output is correct |
68 |
Correct |
7 ms |
11348 KB |
Output is correct |
69 |
Correct |
7 ms |
11348 KB |
Output is correct |
70 |
Correct |
7 ms |
11400 KB |
Output is correct |
71 |
Correct |
7 ms |
11392 KB |
Output is correct |
72 |
Correct |
6 ms |
11348 KB |
Output is correct |
73 |
Correct |
6 ms |
11348 KB |
Output is correct |
74 |
Correct |
6 ms |
11348 KB |
Output is correct |
75 |
Correct |
6 ms |
11348 KB |
Output is correct |
76 |
Correct |
6 ms |
11220 KB |
Output is correct |
77 |
Correct |
7 ms |
11444 KB |
Output is correct |
78 |
Correct |
7 ms |
11384 KB |
Output is correct |
79 |
Correct |
7 ms |
11348 KB |
Output is correct |
80 |
Correct |
7 ms |
11476 KB |
Output is correct |
81 |
Correct |
7 ms |
11400 KB |
Output is correct |
82 |
Correct |
6 ms |
11476 KB |
Output is correct |
83 |
Correct |
6 ms |
11392 KB |
Output is correct |
84 |
Correct |
7 ms |
11348 KB |
Output is correct |
85 |
Correct |
7 ms |
11328 KB |
Output is correct |
86 |
Correct |
7 ms |
11396 KB |
Output is correct |
87 |
Correct |
7 ms |
11392 KB |
Output is correct |
88 |
Correct |
7 ms |
11392 KB |
Output is correct |
89 |
Correct |
7 ms |
11396 KB |
Output is correct |
90 |
Correct |
7 ms |
11348 KB |
Output is correct |
91 |
Correct |
6 ms |
11348 KB |
Output is correct |
92 |
Correct |
6 ms |
11348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
11220 KB |
Output is correct |
2 |
Correct |
7 ms |
11256 KB |
Output is correct |
3 |
Correct |
6 ms |
11220 KB |
Output is correct |
4 |
Correct |
6 ms |
11256 KB |
Output is correct |
5 |
Correct |
6 ms |
11260 KB |
Output is correct |
6 |
Correct |
6 ms |
11256 KB |
Output is correct |
7 |
Correct |
6 ms |
11220 KB |
Output is correct |
8 |
Correct |
7 ms |
11220 KB |
Output is correct |
9 |
Correct |
6 ms |
11256 KB |
Output is correct |
10 |
Correct |
6 ms |
11220 KB |
Output is correct |
11 |
Correct |
6 ms |
11220 KB |
Output is correct |
12 |
Correct |
7 ms |
11260 KB |
Output is correct |
13 |
Correct |
6 ms |
11212 KB |
Output is correct |
14 |
Correct |
6 ms |
11220 KB |
Output is correct |
15 |
Correct |
7 ms |
11220 KB |
Output is correct |
16 |
Correct |
6 ms |
11256 KB |
Output is correct |
17 |
Correct |
6 ms |
11220 KB |
Output is correct |
18 |
Correct |
6 ms |
11220 KB |
Output is correct |
19 |
Correct |
6 ms |
11220 KB |
Output is correct |
20 |
Correct |
6 ms |
11220 KB |
Output is correct |
21 |
Correct |
6 ms |
11256 KB |
Output is correct |
22 |
Correct |
6 ms |
11260 KB |
Output is correct |
23 |
Correct |
6 ms |
11252 KB |
Output is correct |
24 |
Correct |
6 ms |
11220 KB |
Output is correct |
25 |
Correct |
6 ms |
11264 KB |
Output is correct |
26 |
Correct |
7 ms |
11220 KB |
Output is correct |
27 |
Correct |
6 ms |
11184 KB |
Output is correct |
28 |
Correct |
6 ms |
11220 KB |
Output is correct |
29 |
Correct |
6 ms |
11220 KB |
Output is correct |
30 |
Correct |
7 ms |
11260 KB |
Output is correct |
31 |
Correct |
6 ms |
11220 KB |
Output is correct |
32 |
Correct |
8 ms |
11260 KB |
Output is correct |
33 |
Correct |
6 ms |
11264 KB |
Output is correct |
34 |
Correct |
7 ms |
11224 KB |
Output is correct |
35 |
Correct |
7 ms |
11256 KB |
Output is correct |
36 |
Correct |
6 ms |
11220 KB |
Output is correct |
37 |
Correct |
7 ms |
11220 KB |
Output is correct |
38 |
Correct |
7 ms |
11256 KB |
Output is correct |
39 |
Correct |
6 ms |
11220 KB |
Output is correct |
40 |
Correct |
6 ms |
11220 KB |
Output is correct |
41 |
Correct |
7 ms |
11260 KB |
Output is correct |
42 |
Correct |
7 ms |
11256 KB |
Output is correct |
43 |
Correct |
7 ms |
11220 KB |
Output is correct |
44 |
Correct |
6 ms |
11256 KB |
Output is correct |
45 |
Correct |
7 ms |
11220 KB |
Output is correct |
46 |
Correct |
9 ms |
11260 KB |
Output is correct |
47 |
Correct |
7 ms |
11220 KB |
Output is correct |
48 |
Correct |
6 ms |
11220 KB |
Output is correct |
49 |
Correct |
6 ms |
11256 KB |
Output is correct |
50 |
Correct |
7 ms |
11220 KB |
Output is correct |
51 |
Correct |
7 ms |
11260 KB |
Output is correct |
52 |
Correct |
7 ms |
11220 KB |
Output is correct |
53 |
Correct |
7 ms |
11260 KB |
Output is correct |
54 |
Correct |
7 ms |
11220 KB |
Output is correct |
55 |
Correct |
7 ms |
11256 KB |
Output is correct |
56 |
Correct |
7 ms |
11220 KB |
Output is correct |
57 |
Correct |
7 ms |
11220 KB |
Output is correct |
58 |
Correct |
7 ms |
11316 KB |
Output is correct |
59 |
Correct |
7 ms |
11256 KB |
Output is correct |
60 |
Correct |
7 ms |
11220 KB |
Output is correct |
61 |
Correct |
7 ms |
11216 KB |
Output is correct |
62 |
Correct |
6 ms |
11220 KB |
Output is correct |
63 |
Correct |
7 ms |
11220 KB |
Output is correct |
64 |
Correct |
6 ms |
11264 KB |
Output is correct |
65 |
Correct |
7 ms |
11256 KB |
Output is correct |
66 |
Correct |
90 ms |
30092 KB |
Output is correct |
67 |
Correct |
90 ms |
30036 KB |
Output is correct |
68 |
Correct |
124 ms |
28928 KB |
Output is correct |
69 |
Correct |
86 ms |
29976 KB |
Output is correct |
70 |
Correct |
89 ms |
27080 KB |
Output is correct |
71 |
Correct |
96 ms |
29152 KB |
Output is correct |
72 |
Correct |
94 ms |
27176 KB |
Output is correct |
73 |
Correct |
98 ms |
27724 KB |
Output is correct |
74 |
Correct |
100 ms |
25720 KB |
Output is correct |
75 |
Correct |
89 ms |
25848 KB |
Output is correct |
76 |
Correct |
89 ms |
23340 KB |
Output is correct |
77 |
Correct |
84 ms |
23076 KB |
Output is correct |
78 |
Correct |
79 ms |
22944 KB |
Output is correct |
79 |
Correct |
72 ms |
22628 KB |
Output is correct |
80 |
Correct |
53 ms |
21460 KB |
Output is correct |
81 |
Correct |
54 ms |
21196 KB |
Output is correct |
82 |
Correct |
10 ms |
14036 KB |
Output is correct |
83 |
Correct |
9 ms |
14036 KB |
Output is correct |
84 |
Correct |
9 ms |
14076 KB |
Output is correct |
85 |
Correct |
9 ms |
14072 KB |
Output is correct |
86 |
Correct |
10 ms |
14176 KB |
Output is correct |
87 |
Correct |
10 ms |
14036 KB |
Output is correct |
88 |
Correct |
6 ms |
11348 KB |
Output is correct |
89 |
Correct |
6 ms |
11348 KB |
Output is correct |
90 |
Correct |
6 ms |
11412 KB |
Output is correct |
91 |
Correct |
7 ms |
11476 KB |
Output is correct |
92 |
Correct |
6 ms |
11476 KB |
Output is correct |
93 |
Correct |
7 ms |
11416 KB |
Output is correct |
94 |
Correct |
6 ms |
11476 KB |
Output is correct |
95 |
Correct |
6 ms |
11476 KB |
Output is correct |
96 |
Correct |
7 ms |
11476 KB |
Output is correct |
97 |
Correct |
6 ms |
11348 KB |
Output is correct |
98 |
Correct |
7 ms |
11476 KB |
Output is correct |
99 |
Correct |
7 ms |
11400 KB |
Output is correct |
100 |
Correct |
7 ms |
11392 KB |
Output is correct |
101 |
Correct |
6 ms |
11388 KB |
Output is correct |
102 |
Correct |
7 ms |
11348 KB |
Output is correct |
103 |
Correct |
7 ms |
11416 KB |
Output is correct |
104 |
Correct |
7 ms |
11348 KB |
Output is correct |
105 |
Correct |
7 ms |
11396 KB |
Output is correct |
106 |
Correct |
6 ms |
11396 KB |
Output is correct |
107 |
Correct |
7 ms |
11348 KB |
Output is correct |
108 |
Correct |
101 ms |
24756 KB |
Output is correct |
109 |
Correct |
95 ms |
24780 KB |
Output is correct |
110 |
Correct |
96 ms |
24680 KB |
Output is correct |
111 |
Correct |
91 ms |
24880 KB |
Output is correct |
112 |
Correct |
99 ms |
24780 KB |
Output is correct |
113 |
Correct |
106 ms |
33140 KB |
Output is correct |
114 |
Correct |
106 ms |
30204 KB |
Output is correct |
115 |
Correct |
112 ms |
28744 KB |
Output is correct |
116 |
Correct |
112 ms |
27464 KB |
Output is correct |
117 |
Correct |
95 ms |
24732 KB |
Output is correct |
118 |
Correct |
101 ms |
25932 KB |
Output is correct |
119 |
Correct |
93 ms |
26064 KB |
Output is correct |
120 |
Correct |
98 ms |
25988 KB |
Output is correct |
121 |
Correct |
95 ms |
25276 KB |
Output is correct |
122 |
Correct |
77 ms |
24488 KB |
Output is correct |
123 |
Correct |
55 ms |
21520 KB |
Output is correct |
124 |
Correct |
71 ms |
26600 KB |
Output is correct |
125 |
Correct |
73 ms |
26612 KB |
Output is correct |
126 |
Correct |
69 ms |
26672 KB |
Output is correct |
127 |
Correct |
78 ms |
26548 KB |
Output is correct |
128 |
Correct |
6 ms |
11348 KB |
Output is correct |
129 |
Correct |
7 ms |
11348 KB |
Output is correct |
130 |
Correct |
7 ms |
11348 KB |
Output is correct |
131 |
Correct |
9 ms |
11348 KB |
Output is correct |
132 |
Correct |
8 ms |
11348 KB |
Output is correct |
133 |
Correct |
6 ms |
11348 KB |
Output is correct |
134 |
Correct |
7 ms |
11348 KB |
Output is correct |
135 |
Correct |
7 ms |
11348 KB |
Output is correct |
136 |
Correct |
6 ms |
11348 KB |
Output is correct |
137 |
Correct |
7 ms |
11348 KB |
Output is correct |
138 |
Correct |
6 ms |
11348 KB |
Output is correct |
139 |
Correct |
7 ms |
11476 KB |
Output is correct |
140 |
Correct |
6 ms |
11380 KB |
Output is correct |
141 |
Correct |
7 ms |
11476 KB |
Output is correct |
142 |
Correct |
6 ms |
11456 KB |
Output is correct |
143 |
Correct |
7 ms |
11348 KB |
Output is correct |
144 |
Correct |
6 ms |
11348 KB |
Output is correct |
145 |
Correct |
6 ms |
11396 KB |
Output is correct |
146 |
Correct |
7 ms |
11396 KB |
Output is correct |
147 |
Correct |
7 ms |
11424 KB |
Output is correct |
148 |
Correct |
8 ms |
11476 KB |
Output is correct |
149 |
Correct |
6 ms |
11348 KB |
Output is correct |
150 |
Correct |
6 ms |
11348 KB |
Output is correct |
151 |
Correct |
6 ms |
11392 KB |
Output is correct |
152 |
Correct |
6 ms |
11260 KB |
Output is correct |
153 |
Correct |
6 ms |
11284 KB |
Output is correct |
154 |
Correct |
6 ms |
11220 KB |
Output is correct |
155 |
Correct |
110 ms |
24792 KB |
Output is correct |
156 |
Correct |
109 ms |
24640 KB |
Output is correct |
157 |
Correct |
103 ms |
23796 KB |
Output is correct |
158 |
Correct |
95 ms |
22796 KB |
Output is correct |
159 |
Correct |
107 ms |
21792 KB |
Output is correct |
160 |
Correct |
85 ms |
21344 KB |
Output is correct |
161 |
Correct |
81 ms |
21116 KB |
Output is correct |
162 |
Correct |
91 ms |
20904 KB |
Output is correct |
163 |
Correct |
87 ms |
20924 KB |
Output is correct |
164 |
Correct |
88 ms |
20724 KB |
Output is correct |
165 |
Correct |
72 ms |
20592 KB |
Output is correct |
166 |
Correct |
71 ms |
20760 KB |
Output is correct |
167 |
Correct |
70 ms |
20944 KB |
Output is correct |
168 |
Correct |
70 ms |
22928 KB |
Output is correct |
169 |
Correct |
110 ms |
29760 KB |
Output is correct |
170 |
Correct |
109 ms |
27780 KB |
Output is correct |
171 |
Correct |
104 ms |
28188 KB |
Output is correct |
172 |
Correct |
116 ms |
26524 KB |
Output is correct |
173 |
Correct |
95 ms |
22800 KB |
Output is correct |
174 |
Correct |
95 ms |
24304 KB |
Output is correct |
175 |
Correct |
125 ms |
24272 KB |
Output is correct |
176 |
Correct |
89 ms |
23692 KB |
Output is correct |
177 |
Correct |
85 ms |
23044 KB |
Output is correct |
178 |
Correct |
96 ms |
25644 KB |
Output is correct |
179 |
Correct |
101 ms |
25728 KB |
Output is correct |
180 |
Correct |
89 ms |
24956 KB |
Output is correct |
181 |
Correct |
95 ms |
24964 KB |
Output is correct |
182 |
Correct |
7 ms |
11220 KB |
Output is correct |
183 |
Correct |
6 ms |
11348 KB |
Output is correct |
184 |
Correct |
7 ms |
11348 KB |
Output is correct |
185 |
Correct |
7 ms |
11348 KB |
Output is correct |
186 |
Correct |
7 ms |
11400 KB |
Output is correct |
187 |
Correct |
7 ms |
11392 KB |
Output is correct |
188 |
Correct |
6 ms |
11348 KB |
Output is correct |
189 |
Correct |
6 ms |
11348 KB |
Output is correct |
190 |
Correct |
6 ms |
11348 KB |
Output is correct |
191 |
Correct |
6 ms |
11348 KB |
Output is correct |
192 |
Correct |
6 ms |
11220 KB |
Output is correct |
193 |
Correct |
7 ms |
11444 KB |
Output is correct |
194 |
Correct |
7 ms |
11384 KB |
Output is correct |
195 |
Correct |
7 ms |
11348 KB |
Output is correct |
196 |
Correct |
7 ms |
11476 KB |
Output is correct |
197 |
Correct |
7 ms |
11400 KB |
Output is correct |
198 |
Correct |
6 ms |
11476 KB |
Output is correct |
199 |
Correct |
6 ms |
11392 KB |
Output is correct |
200 |
Correct |
7 ms |
11348 KB |
Output is correct |
201 |
Correct |
7 ms |
11328 KB |
Output is correct |
202 |
Correct |
7 ms |
11396 KB |
Output is correct |
203 |
Correct |
7 ms |
11392 KB |
Output is correct |
204 |
Correct |
7 ms |
11392 KB |
Output is correct |
205 |
Correct |
7 ms |
11396 KB |
Output is correct |
206 |
Correct |
7 ms |
11348 KB |
Output is correct |
207 |
Correct |
6 ms |
11348 KB |
Output is correct |
208 |
Correct |
6 ms |
11348 KB |
Output is correct |
209 |
Correct |
9 ms |
13944 KB |
Output is correct |
210 |
Correct |
55 ms |
20912 KB |
Output is correct |
211 |
Correct |
87 ms |
24784 KB |
Output is correct |
212 |
Correct |
107 ms |
27460 KB |
Output is correct |
213 |
Correct |
130 ms |
29388 KB |
Output is correct |
214 |
Correct |
49 ms |
23068 KB |
Output is correct |
215 |
Correct |
54 ms |
22732 KB |
Output is correct |
216 |
Correct |
124 ms |
25064 KB |
Output is correct |
217 |
Correct |
105 ms |
23812 KB |
Output is correct |
218 |
Correct |
80 ms |
22348 KB |
Output is correct |
219 |
Correct |
78 ms |
22012 KB |
Output is correct |
220 |
Correct |
85 ms |
21904 KB |
Output is correct |
221 |
Correct |
72 ms |
21932 KB |
Output is correct |
222 |
Correct |
83 ms |
23168 KB |
Output is correct |
223 |
Correct |
112 ms |
26188 KB |
Output is correct |
224 |
Correct |
103 ms |
25364 KB |
Output is correct |
225 |
Correct |
91 ms |
23496 KB |
Output is correct |
226 |
Correct |
102 ms |
23500 KB |
Output is correct |
227 |
Correct |
99 ms |
23420 KB |
Output is correct |
228 |
Correct |
89 ms |
23032 KB |
Output is correct |
229 |
Correct |
75 ms |
22724 KB |
Output is correct |
230 |
Correct |
91 ms |
23948 KB |
Output is correct |
231 |
Correct |
105 ms |
23968 KB |
Output is correct |