/*input
4 4
1 2
2 3
3 4
4 2
*/
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
//order_of_key #of elements less than x
// find_by_order kth element
typedef long long int ll;
#define ld long double
#define pii pair<int,int>
typedef tree<pii, null_type, less<pii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
#define f first
#define s second
#define pb push_back
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define FILL(n,x) memset(n,x,sizeof(n))
#define ALL(_a) _a.begin(),_a.end()
#define sz(x) (int)x.size()
const ll maxn=1e5+10;
const ll maxlg=__lg(maxn)+2;
const ll INF64=4e18;
int MOD=2;
const int INF=0x3f3f3f3f;
const ld PI=acos(-1);
const ld eps=1e-9;
#define lowb(x) x&(-x)
#define MNTO(x,y) x=min(x,(__typeof__(x))y)
#define MXTO(x,y) x=max(x,(__typeof__(x))y)
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#define GET_POS(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
template<typename T1,typename T2>
ostream& operator<<(ostream& out,pair<T1,T2> P){
out<<P.f<<' '<<P.s;
return out;
}
template<typename T>
ostream& operator<<(ostream& out,vector<T> V){
REP(i,sz(V)) out<<V[i]<<((i!=sz(V)-1)?" ":"");
return out;
}
int mult(ll a,ll b){
if(a<0) a+=MOD;
return (a*b)%MOD;
}
ll mypow(ll a,ll b){
if(b<=0) return 1;
ll res=1LL;
while(b){
if(b&1) res=mult(res,a);
a=mult(a,a);
b>>=1;
}
return res;
}
int low[maxn],dep[maxn];
int cur=0;
vector<int> stk;
int cnt;
bool vis[maxn];
vector<int> v[maxn];
vector<int> g[2*maxn];
int val[2*maxn],sz[2*maxn];
int n;
int num=0;
void dfs(int u){
low[u]=dep[u]=cur++;
vis[u]=1;
val[u]=-1;
stk.pb(u);
++num;
for(int x:v[u]){
if(!vis[x]){
dfs(x);
MNTO(low[u],low[x]);
if(low[x]==dep[u]){
while(sz(stk)){
int a=stk.back();
g[a].pb(cnt);
g[cnt].pb(a);
stk.pop_back();
if(a==x) break;
}
g[u].pb(cnt);
g[cnt].pb(u);
val[cnt]=sz(g[cnt]);
++cnt;
}
}
else{
MNTO(low[u],dep[x]);
}
}
}
ll ans=0;
void dfs2(int u,int p){
sz[u]=(u<n);
for(int x:g[u]){
if(x==p) continue;
dfs2(x,u);
ans+=2LL*val[u]*sz[u]*sz[x];
sz[u]+=sz[x];
}
ans+=2LL*val[u]*sz[u]*(num-sz[u]);
}
int32_t main(){
ios::sync_with_stdio(false),cin.tie(0);
int m;
cin>>n>>m;
cnt=n;
REP(i,m){
int a,b;
cin>>a>>b;
--a,--b;
v[a].pb(b),v[b].pb(a);
}
REP(i,n){
if(!vis[i]){
num=0;
dfs(i);
dfs2(i,-1);
}
}
cout<<ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
7380 KB |
Output is correct |
2 |
Correct |
4 ms |
7380 KB |
Output is correct |
3 |
Correct |
4 ms |
7380 KB |
Output is correct |
4 |
Correct |
4 ms |
7380 KB |
Output is correct |
5 |
Correct |
4 ms |
7388 KB |
Output is correct |
6 |
Correct |
3 ms |
7388 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
4 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
4 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7288 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7380 KB |
Output is correct |
16 |
Correct |
5 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
5 ms |
7328 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
4 ms |
7380 KB |
Output is correct |
24 |
Correct |
4 ms |
7396 KB |
Output is correct |
25 |
Correct |
4 ms |
7280 KB |
Output is correct |
26 |
Correct |
4 ms |
7380 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
28 |
Correct |
4 ms |
7384 KB |
Output is correct |
29 |
Correct |
4 ms |
7380 KB |
Output is correct |
30 |
Correct |
4 ms |
7388 KB |
Output is correct |
31 |
Correct |
4 ms |
7380 KB |
Output is correct |
32 |
Correct |
4 ms |
7384 KB |
Output is correct |
33 |
Correct |
4 ms |
7380 KB |
Output is correct |
34 |
Correct |
4 ms |
7380 KB |
Output is correct |
35 |
Correct |
4 ms |
7388 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
7380 KB |
Output is correct |
2 |
Correct |
4 ms |
7380 KB |
Output is correct |
3 |
Correct |
4 ms |
7380 KB |
Output is correct |
4 |
Correct |
4 ms |
7380 KB |
Output is correct |
5 |
Correct |
4 ms |
7388 KB |
Output is correct |
6 |
Correct |
3 ms |
7388 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
4 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
4 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7288 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7380 KB |
Output is correct |
16 |
Correct |
5 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
5 ms |
7328 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
4 ms |
7380 KB |
Output is correct |
24 |
Correct |
4 ms |
7396 KB |
Output is correct |
25 |
Correct |
4 ms |
7280 KB |
Output is correct |
26 |
Correct |
4 ms |
7380 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
28 |
Correct |
4 ms |
7384 KB |
Output is correct |
29 |
Correct |
4 ms |
7380 KB |
Output is correct |
30 |
Correct |
4 ms |
7388 KB |
Output is correct |
31 |
Correct |
4 ms |
7380 KB |
Output is correct |
32 |
Correct |
4 ms |
7384 KB |
Output is correct |
33 |
Correct |
4 ms |
7380 KB |
Output is correct |
34 |
Correct |
4 ms |
7380 KB |
Output is correct |
35 |
Correct |
4 ms |
7388 KB |
Output is correct |
36 |
Correct |
4 ms |
7388 KB |
Output is correct |
37 |
Correct |
4 ms |
7380 KB |
Output is correct |
38 |
Correct |
4 ms |
7380 KB |
Output is correct |
39 |
Correct |
4 ms |
7380 KB |
Output is correct |
40 |
Correct |
4 ms |
7380 KB |
Output is correct |
41 |
Correct |
4 ms |
7380 KB |
Output is correct |
42 |
Correct |
4 ms |
7380 KB |
Output is correct |
43 |
Correct |
5 ms |
7392 KB |
Output is correct |
44 |
Correct |
4 ms |
7388 KB |
Output is correct |
45 |
Correct |
5 ms |
7380 KB |
Output is correct |
46 |
Correct |
4 ms |
7384 KB |
Output is correct |
47 |
Correct |
4 ms |
7380 KB |
Output is correct |
48 |
Correct |
4 ms |
7380 KB |
Output is correct |
49 |
Correct |
4 ms |
7388 KB |
Output is correct |
50 |
Correct |
5 ms |
7380 KB |
Output is correct |
51 |
Correct |
4 ms |
7380 KB |
Output is correct |
52 |
Correct |
4 ms |
7380 KB |
Output is correct |
53 |
Correct |
4 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7380 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7384 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
62 |
Correct |
4 ms |
7384 KB |
Output is correct |
63 |
Correct |
5 ms |
7380 KB |
Output is correct |
64 |
Correct |
5 ms |
7508 KB |
Output is correct |
65 |
Correct |
4 ms |
7392 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
68 ms |
27164 KB |
Output is correct |
2 |
Correct |
69 ms |
28232 KB |
Output is correct |
3 |
Correct |
78 ms |
25236 KB |
Output is correct |
4 |
Correct |
73 ms |
26300 KB |
Output is correct |
5 |
Correct |
74 ms |
22336 KB |
Output is correct |
6 |
Correct |
77 ms |
24148 KB |
Output is correct |
7 |
Correct |
82 ms |
22048 KB |
Output is correct |
8 |
Correct |
80 ms |
22608 KB |
Output is correct |
9 |
Correct |
90 ms |
20684 KB |
Output is correct |
10 |
Correct |
75 ms |
20876 KB |
Output is correct |
11 |
Correct |
63 ms |
18284 KB |
Output is correct |
12 |
Correct |
59 ms |
18068 KB |
Output is correct |
13 |
Correct |
57 ms |
18148 KB |
Output is correct |
14 |
Correct |
57 ms |
17780 KB |
Output is correct |
15 |
Correct |
44 ms |
16568 KB |
Output is correct |
16 |
Correct |
44 ms |
16332 KB |
Output is correct |
17 |
Correct |
7 ms |
9640 KB |
Output is correct |
18 |
Correct |
7 ms |
9572 KB |
Output is correct |
19 |
Correct |
6 ms |
9568 KB |
Output is correct |
20 |
Correct |
9 ms |
9580 KB |
Output is correct |
21 |
Correct |
6 ms |
9560 KB |
Output is correct |
22 |
Correct |
6 ms |
9560 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
7508 KB |
Output is correct |
2 |
Correct |
4 ms |
7508 KB |
Output is correct |
3 |
Correct |
5 ms |
7520 KB |
Output is correct |
4 |
Correct |
5 ms |
7636 KB |
Output is correct |
5 |
Correct |
7 ms |
7508 KB |
Output is correct |
6 |
Correct |
4 ms |
7508 KB |
Output is correct |
7 |
Correct |
5 ms |
7528 KB |
Output is correct |
8 |
Correct |
4 ms |
7508 KB |
Output is correct |
9 |
Correct |
4 ms |
7508 KB |
Output is correct |
10 |
Correct |
4 ms |
7508 KB |
Output is correct |
11 |
Correct |
4 ms |
7508 KB |
Output is correct |
12 |
Correct |
4 ms |
7520 KB |
Output is correct |
13 |
Correct |
4 ms |
7508 KB |
Output is correct |
14 |
Correct |
4 ms |
7508 KB |
Output is correct |
15 |
Correct |
5 ms |
7508 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7508 KB |
Output is correct |
18 |
Correct |
4 ms |
7524 KB |
Output is correct |
19 |
Correct |
4 ms |
7528 KB |
Output is correct |
20 |
Correct |
4 ms |
7508 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
84 ms |
19536 KB |
Output is correct |
2 |
Correct |
89 ms |
20792 KB |
Output is correct |
3 |
Correct |
79 ms |
20640 KB |
Output is correct |
4 |
Correct |
86 ms |
20668 KB |
Output is correct |
5 |
Correct |
82 ms |
20648 KB |
Output is correct |
6 |
Correct |
88 ms |
29104 KB |
Output is correct |
7 |
Correct |
95 ms |
26184 KB |
Output is correct |
8 |
Correct |
87 ms |
24696 KB |
Output is correct |
9 |
Correct |
95 ms |
23364 KB |
Output is correct |
10 |
Correct |
87 ms |
20640 KB |
Output is correct |
11 |
Correct |
83 ms |
20620 KB |
Output is correct |
12 |
Correct |
88 ms |
20556 KB |
Output is correct |
13 |
Correct |
81 ms |
20620 KB |
Output is correct |
14 |
Correct |
91 ms |
20008 KB |
Output is correct |
15 |
Correct |
65 ms |
19244 KB |
Output is correct |
16 |
Correct |
45 ms |
16460 KB |
Output is correct |
17 |
Correct |
58 ms |
21188 KB |
Output is correct |
18 |
Correct |
65 ms |
21132 KB |
Output is correct |
19 |
Correct |
63 ms |
21248 KB |
Output is correct |
20 |
Correct |
70 ms |
21196 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
7524 KB |
Output is correct |
2 |
Correct |
5 ms |
7508 KB |
Output is correct |
3 |
Correct |
4 ms |
7508 KB |
Output is correct |
4 |
Correct |
5 ms |
7396 KB |
Output is correct |
5 |
Correct |
5 ms |
7400 KB |
Output is correct |
6 |
Correct |
5 ms |
7380 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
5 ms |
7392 KB |
Output is correct |
9 |
Correct |
5 ms |
7380 KB |
Output is correct |
10 |
Correct |
4 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7400 KB |
Output is correct |
12 |
Correct |
4 ms |
7508 KB |
Output is correct |
13 |
Correct |
4 ms |
7524 KB |
Output is correct |
14 |
Correct |
4 ms |
7524 KB |
Output is correct |
15 |
Correct |
5 ms |
7508 KB |
Output is correct |
16 |
Correct |
4 ms |
7508 KB |
Output is correct |
17 |
Correct |
4 ms |
7508 KB |
Output is correct |
18 |
Correct |
4 ms |
7508 KB |
Output is correct |
19 |
Correct |
4 ms |
7396 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
5 ms |
7468 KB |
Output is correct |
22 |
Correct |
4 ms |
7520 KB |
Output is correct |
23 |
Correct |
5 ms |
7508 KB |
Output is correct |
24 |
Correct |
4 ms |
7508 KB |
Output is correct |
25 |
Correct |
4 ms |
7380 KB |
Output is correct |
26 |
Correct |
4 ms |
7380 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
80 ms |
19540 KB |
Output is correct |
2 |
Correct |
89 ms |
20456 KB |
Output is correct |
3 |
Correct |
88 ms |
20160 KB |
Output is correct |
4 |
Correct |
90 ms |
19276 KB |
Output is correct |
5 |
Correct |
89 ms |
18368 KB |
Output is correct |
6 |
Correct |
77 ms |
17876 KB |
Output is correct |
7 |
Correct |
86 ms |
17760 KB |
Output is correct |
8 |
Correct |
70 ms |
17544 KB |
Output is correct |
9 |
Correct |
75 ms |
17484 KB |
Output is correct |
10 |
Correct |
72 ms |
17336 KB |
Output is correct |
11 |
Correct |
66 ms |
17352 KB |
Output is correct |
12 |
Correct |
63 ms |
17372 KB |
Output is correct |
13 |
Correct |
67 ms |
17516 KB |
Output is correct |
14 |
Correct |
85 ms |
20024 KB |
Output is correct |
15 |
Correct |
99 ms |
26004 KB |
Output is correct |
16 |
Correct |
91 ms |
23964 KB |
Output is correct |
17 |
Correct |
94 ms |
24756 KB |
Output is correct |
18 |
Correct |
87 ms |
22988 KB |
Output is correct |
19 |
Correct |
86 ms |
19212 KB |
Output is correct |
20 |
Correct |
93 ms |
19180 KB |
Output is correct |
21 |
Correct |
103 ms |
19228 KB |
Output is correct |
22 |
Correct |
90 ms |
18680 KB |
Output is correct |
23 |
Correct |
67 ms |
18112 KB |
Output is correct |
24 |
Correct |
78 ms |
20384 KB |
Output is correct |
25 |
Correct |
87 ms |
20392 KB |
Output is correct |
26 |
Correct |
81 ms |
19800 KB |
Output is correct |
27 |
Correct |
91 ms |
19788 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
7380 KB |
Output is correct |
2 |
Correct |
4 ms |
7380 KB |
Output is correct |
3 |
Correct |
4 ms |
7380 KB |
Output is correct |
4 |
Correct |
4 ms |
7380 KB |
Output is correct |
5 |
Correct |
4 ms |
7388 KB |
Output is correct |
6 |
Correct |
3 ms |
7388 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
4 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
4 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7288 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7380 KB |
Output is correct |
16 |
Correct |
5 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
5 ms |
7328 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
4 ms |
7380 KB |
Output is correct |
24 |
Correct |
4 ms |
7396 KB |
Output is correct |
25 |
Correct |
4 ms |
7280 KB |
Output is correct |
26 |
Correct |
4 ms |
7380 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
28 |
Correct |
4 ms |
7384 KB |
Output is correct |
29 |
Correct |
4 ms |
7380 KB |
Output is correct |
30 |
Correct |
4 ms |
7388 KB |
Output is correct |
31 |
Correct |
4 ms |
7380 KB |
Output is correct |
32 |
Correct |
4 ms |
7384 KB |
Output is correct |
33 |
Correct |
4 ms |
7380 KB |
Output is correct |
34 |
Correct |
4 ms |
7380 KB |
Output is correct |
35 |
Correct |
4 ms |
7388 KB |
Output is correct |
36 |
Correct |
4 ms |
7388 KB |
Output is correct |
37 |
Correct |
4 ms |
7380 KB |
Output is correct |
38 |
Correct |
4 ms |
7380 KB |
Output is correct |
39 |
Correct |
4 ms |
7380 KB |
Output is correct |
40 |
Correct |
4 ms |
7380 KB |
Output is correct |
41 |
Correct |
4 ms |
7380 KB |
Output is correct |
42 |
Correct |
4 ms |
7380 KB |
Output is correct |
43 |
Correct |
5 ms |
7392 KB |
Output is correct |
44 |
Correct |
4 ms |
7388 KB |
Output is correct |
45 |
Correct |
5 ms |
7380 KB |
Output is correct |
46 |
Correct |
4 ms |
7384 KB |
Output is correct |
47 |
Correct |
4 ms |
7380 KB |
Output is correct |
48 |
Correct |
4 ms |
7380 KB |
Output is correct |
49 |
Correct |
4 ms |
7388 KB |
Output is correct |
50 |
Correct |
5 ms |
7380 KB |
Output is correct |
51 |
Correct |
4 ms |
7380 KB |
Output is correct |
52 |
Correct |
4 ms |
7380 KB |
Output is correct |
53 |
Correct |
4 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7380 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7384 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
62 |
Correct |
4 ms |
7384 KB |
Output is correct |
63 |
Correct |
5 ms |
7380 KB |
Output is correct |
64 |
Correct |
5 ms |
7508 KB |
Output is correct |
65 |
Correct |
4 ms |
7392 KB |
Output is correct |
66 |
Correct |
5 ms |
7380 KB |
Output is correct |
67 |
Correct |
4 ms |
7404 KB |
Output is correct |
68 |
Correct |
4 ms |
7524 KB |
Output is correct |
69 |
Correct |
4 ms |
7508 KB |
Output is correct |
70 |
Correct |
6 ms |
7528 KB |
Output is correct |
71 |
Correct |
5 ms |
7380 KB |
Output is correct |
72 |
Correct |
4 ms |
7508 KB |
Output is correct |
73 |
Correct |
4 ms |
7396 KB |
Output is correct |
74 |
Correct |
4 ms |
7440 KB |
Output is correct |
75 |
Correct |
4 ms |
7508 KB |
Output is correct |
76 |
Correct |
4 ms |
7380 KB |
Output is correct |
77 |
Correct |
4 ms |
7508 KB |
Output is correct |
78 |
Correct |
4 ms |
7492 KB |
Output is correct |
79 |
Correct |
5 ms |
7380 KB |
Output is correct |
80 |
Correct |
4 ms |
7380 KB |
Output is correct |
81 |
Correct |
4 ms |
7508 KB |
Output is correct |
82 |
Correct |
4 ms |
7524 KB |
Output is correct |
83 |
Correct |
4 ms |
7636 KB |
Output is correct |
84 |
Correct |
5 ms |
7508 KB |
Output is correct |
85 |
Correct |
4 ms |
7508 KB |
Output is correct |
86 |
Correct |
4 ms |
7380 KB |
Output is correct |
87 |
Correct |
4 ms |
7508 KB |
Output is correct |
88 |
Correct |
4 ms |
7380 KB |
Output is correct |
89 |
Correct |
5 ms |
7380 KB |
Output is correct |
90 |
Correct |
4 ms |
7380 KB |
Output is correct |
91 |
Correct |
4 ms |
7396 KB |
Output is correct |
92 |
Correct |
5 ms |
7636 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
7380 KB |
Output is correct |
2 |
Correct |
4 ms |
7380 KB |
Output is correct |
3 |
Correct |
4 ms |
7380 KB |
Output is correct |
4 |
Correct |
4 ms |
7380 KB |
Output is correct |
5 |
Correct |
4 ms |
7388 KB |
Output is correct |
6 |
Correct |
3 ms |
7388 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
4 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
4 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7288 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7380 KB |
Output is correct |
16 |
Correct |
5 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
5 ms |
7328 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
4 ms |
7380 KB |
Output is correct |
24 |
Correct |
4 ms |
7396 KB |
Output is correct |
25 |
Correct |
4 ms |
7280 KB |
Output is correct |
26 |
Correct |
4 ms |
7380 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
28 |
Correct |
4 ms |
7384 KB |
Output is correct |
29 |
Correct |
4 ms |
7380 KB |
Output is correct |
30 |
Correct |
4 ms |
7388 KB |
Output is correct |
31 |
Correct |
4 ms |
7380 KB |
Output is correct |
32 |
Correct |
4 ms |
7384 KB |
Output is correct |
33 |
Correct |
4 ms |
7380 KB |
Output is correct |
34 |
Correct |
4 ms |
7380 KB |
Output is correct |
35 |
Correct |
4 ms |
7388 KB |
Output is correct |
36 |
Correct |
4 ms |
7388 KB |
Output is correct |
37 |
Correct |
4 ms |
7380 KB |
Output is correct |
38 |
Correct |
4 ms |
7380 KB |
Output is correct |
39 |
Correct |
4 ms |
7380 KB |
Output is correct |
40 |
Correct |
4 ms |
7380 KB |
Output is correct |
41 |
Correct |
4 ms |
7380 KB |
Output is correct |
42 |
Correct |
4 ms |
7380 KB |
Output is correct |
43 |
Correct |
5 ms |
7392 KB |
Output is correct |
44 |
Correct |
4 ms |
7388 KB |
Output is correct |
45 |
Correct |
5 ms |
7380 KB |
Output is correct |
46 |
Correct |
4 ms |
7384 KB |
Output is correct |
47 |
Correct |
4 ms |
7380 KB |
Output is correct |
48 |
Correct |
4 ms |
7380 KB |
Output is correct |
49 |
Correct |
4 ms |
7388 KB |
Output is correct |
50 |
Correct |
5 ms |
7380 KB |
Output is correct |
51 |
Correct |
4 ms |
7380 KB |
Output is correct |
52 |
Correct |
4 ms |
7380 KB |
Output is correct |
53 |
Correct |
4 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7380 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7384 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
62 |
Correct |
4 ms |
7384 KB |
Output is correct |
63 |
Correct |
5 ms |
7380 KB |
Output is correct |
64 |
Correct |
5 ms |
7508 KB |
Output is correct |
65 |
Correct |
4 ms |
7392 KB |
Output is correct |
66 |
Correct |
68 ms |
27164 KB |
Output is correct |
67 |
Correct |
69 ms |
28232 KB |
Output is correct |
68 |
Correct |
78 ms |
25236 KB |
Output is correct |
69 |
Correct |
73 ms |
26300 KB |
Output is correct |
70 |
Correct |
74 ms |
22336 KB |
Output is correct |
71 |
Correct |
77 ms |
24148 KB |
Output is correct |
72 |
Correct |
82 ms |
22048 KB |
Output is correct |
73 |
Correct |
80 ms |
22608 KB |
Output is correct |
74 |
Correct |
90 ms |
20684 KB |
Output is correct |
75 |
Correct |
75 ms |
20876 KB |
Output is correct |
76 |
Correct |
63 ms |
18284 KB |
Output is correct |
77 |
Correct |
59 ms |
18068 KB |
Output is correct |
78 |
Correct |
57 ms |
18148 KB |
Output is correct |
79 |
Correct |
57 ms |
17780 KB |
Output is correct |
80 |
Correct |
44 ms |
16568 KB |
Output is correct |
81 |
Correct |
44 ms |
16332 KB |
Output is correct |
82 |
Correct |
7 ms |
9640 KB |
Output is correct |
83 |
Correct |
7 ms |
9572 KB |
Output is correct |
84 |
Correct |
6 ms |
9568 KB |
Output is correct |
85 |
Correct |
9 ms |
9580 KB |
Output is correct |
86 |
Correct |
6 ms |
9560 KB |
Output is correct |
87 |
Correct |
6 ms |
9560 KB |
Output is correct |
88 |
Correct |
4 ms |
7508 KB |
Output is correct |
89 |
Correct |
4 ms |
7508 KB |
Output is correct |
90 |
Correct |
5 ms |
7520 KB |
Output is correct |
91 |
Correct |
5 ms |
7636 KB |
Output is correct |
92 |
Correct |
7 ms |
7508 KB |
Output is correct |
93 |
Correct |
4 ms |
7508 KB |
Output is correct |
94 |
Correct |
5 ms |
7528 KB |
Output is correct |
95 |
Correct |
4 ms |
7508 KB |
Output is correct |
96 |
Correct |
4 ms |
7508 KB |
Output is correct |
97 |
Correct |
4 ms |
7508 KB |
Output is correct |
98 |
Correct |
4 ms |
7508 KB |
Output is correct |
99 |
Correct |
4 ms |
7520 KB |
Output is correct |
100 |
Correct |
4 ms |
7508 KB |
Output is correct |
101 |
Correct |
4 ms |
7508 KB |
Output is correct |
102 |
Correct |
5 ms |
7508 KB |
Output is correct |
103 |
Correct |
4 ms |
7380 KB |
Output is correct |
104 |
Correct |
4 ms |
7508 KB |
Output is correct |
105 |
Correct |
4 ms |
7524 KB |
Output is correct |
106 |
Correct |
4 ms |
7528 KB |
Output is correct |
107 |
Correct |
4 ms |
7508 KB |
Output is correct |
108 |
Correct |
84 ms |
19536 KB |
Output is correct |
109 |
Correct |
89 ms |
20792 KB |
Output is correct |
110 |
Correct |
79 ms |
20640 KB |
Output is correct |
111 |
Correct |
86 ms |
20668 KB |
Output is correct |
112 |
Correct |
82 ms |
20648 KB |
Output is correct |
113 |
Correct |
88 ms |
29104 KB |
Output is correct |
114 |
Correct |
95 ms |
26184 KB |
Output is correct |
115 |
Correct |
87 ms |
24696 KB |
Output is correct |
116 |
Correct |
95 ms |
23364 KB |
Output is correct |
117 |
Correct |
87 ms |
20640 KB |
Output is correct |
118 |
Correct |
83 ms |
20620 KB |
Output is correct |
119 |
Correct |
88 ms |
20556 KB |
Output is correct |
120 |
Correct |
81 ms |
20620 KB |
Output is correct |
121 |
Correct |
91 ms |
20008 KB |
Output is correct |
122 |
Correct |
65 ms |
19244 KB |
Output is correct |
123 |
Correct |
45 ms |
16460 KB |
Output is correct |
124 |
Correct |
58 ms |
21188 KB |
Output is correct |
125 |
Correct |
65 ms |
21132 KB |
Output is correct |
126 |
Correct |
63 ms |
21248 KB |
Output is correct |
127 |
Correct |
70 ms |
21196 KB |
Output is correct |
128 |
Correct |
5 ms |
7524 KB |
Output is correct |
129 |
Correct |
5 ms |
7508 KB |
Output is correct |
130 |
Correct |
4 ms |
7508 KB |
Output is correct |
131 |
Correct |
5 ms |
7396 KB |
Output is correct |
132 |
Correct |
5 ms |
7400 KB |
Output is correct |
133 |
Correct |
5 ms |
7380 KB |
Output is correct |
134 |
Correct |
4 ms |
7380 KB |
Output is correct |
135 |
Correct |
5 ms |
7392 KB |
Output is correct |
136 |
Correct |
5 ms |
7380 KB |
Output is correct |
137 |
Correct |
4 ms |
7380 KB |
Output is correct |
138 |
Correct |
4 ms |
7400 KB |
Output is correct |
139 |
Correct |
4 ms |
7508 KB |
Output is correct |
140 |
Correct |
4 ms |
7524 KB |
Output is correct |
141 |
Correct |
4 ms |
7524 KB |
Output is correct |
142 |
Correct |
5 ms |
7508 KB |
Output is correct |
143 |
Correct |
4 ms |
7508 KB |
Output is correct |
144 |
Correct |
4 ms |
7508 KB |
Output is correct |
145 |
Correct |
4 ms |
7508 KB |
Output is correct |
146 |
Correct |
4 ms |
7396 KB |
Output is correct |
147 |
Correct |
4 ms |
7380 KB |
Output is correct |
148 |
Correct |
5 ms |
7468 KB |
Output is correct |
149 |
Correct |
4 ms |
7520 KB |
Output is correct |
150 |
Correct |
5 ms |
7508 KB |
Output is correct |
151 |
Correct |
4 ms |
7508 KB |
Output is correct |
152 |
Correct |
4 ms |
7380 KB |
Output is correct |
153 |
Correct |
4 ms |
7380 KB |
Output is correct |
154 |
Correct |
4 ms |
7380 KB |
Output is correct |
155 |
Correct |
80 ms |
19540 KB |
Output is correct |
156 |
Correct |
89 ms |
20456 KB |
Output is correct |
157 |
Correct |
88 ms |
20160 KB |
Output is correct |
158 |
Correct |
90 ms |
19276 KB |
Output is correct |
159 |
Correct |
89 ms |
18368 KB |
Output is correct |
160 |
Correct |
77 ms |
17876 KB |
Output is correct |
161 |
Correct |
86 ms |
17760 KB |
Output is correct |
162 |
Correct |
70 ms |
17544 KB |
Output is correct |
163 |
Correct |
75 ms |
17484 KB |
Output is correct |
164 |
Correct |
72 ms |
17336 KB |
Output is correct |
165 |
Correct |
66 ms |
17352 KB |
Output is correct |
166 |
Correct |
63 ms |
17372 KB |
Output is correct |
167 |
Correct |
67 ms |
17516 KB |
Output is correct |
168 |
Correct |
85 ms |
20024 KB |
Output is correct |
169 |
Correct |
99 ms |
26004 KB |
Output is correct |
170 |
Correct |
91 ms |
23964 KB |
Output is correct |
171 |
Correct |
94 ms |
24756 KB |
Output is correct |
172 |
Correct |
87 ms |
22988 KB |
Output is correct |
173 |
Correct |
86 ms |
19212 KB |
Output is correct |
174 |
Correct |
93 ms |
19180 KB |
Output is correct |
175 |
Correct |
103 ms |
19228 KB |
Output is correct |
176 |
Correct |
90 ms |
18680 KB |
Output is correct |
177 |
Correct |
67 ms |
18112 KB |
Output is correct |
178 |
Correct |
78 ms |
20384 KB |
Output is correct |
179 |
Correct |
87 ms |
20392 KB |
Output is correct |
180 |
Correct |
81 ms |
19800 KB |
Output is correct |
181 |
Correct |
91 ms |
19788 KB |
Output is correct |
182 |
Correct |
5 ms |
7380 KB |
Output is correct |
183 |
Correct |
4 ms |
7404 KB |
Output is correct |
184 |
Correct |
4 ms |
7524 KB |
Output is correct |
185 |
Correct |
4 ms |
7508 KB |
Output is correct |
186 |
Correct |
6 ms |
7528 KB |
Output is correct |
187 |
Correct |
5 ms |
7380 KB |
Output is correct |
188 |
Correct |
4 ms |
7508 KB |
Output is correct |
189 |
Correct |
4 ms |
7396 KB |
Output is correct |
190 |
Correct |
4 ms |
7440 KB |
Output is correct |
191 |
Correct |
4 ms |
7508 KB |
Output is correct |
192 |
Correct |
4 ms |
7380 KB |
Output is correct |
193 |
Correct |
4 ms |
7508 KB |
Output is correct |
194 |
Correct |
4 ms |
7492 KB |
Output is correct |
195 |
Correct |
5 ms |
7380 KB |
Output is correct |
196 |
Correct |
4 ms |
7380 KB |
Output is correct |
197 |
Correct |
4 ms |
7508 KB |
Output is correct |
198 |
Correct |
4 ms |
7524 KB |
Output is correct |
199 |
Correct |
4 ms |
7636 KB |
Output is correct |
200 |
Correct |
5 ms |
7508 KB |
Output is correct |
201 |
Correct |
4 ms |
7508 KB |
Output is correct |
202 |
Correct |
4 ms |
7380 KB |
Output is correct |
203 |
Correct |
4 ms |
7508 KB |
Output is correct |
204 |
Correct |
4 ms |
7380 KB |
Output is correct |
205 |
Correct |
5 ms |
7380 KB |
Output is correct |
206 |
Correct |
4 ms |
7380 KB |
Output is correct |
207 |
Correct |
4 ms |
7396 KB |
Output is correct |
208 |
Correct |
5 ms |
7636 KB |
Output is correct |
209 |
Correct |
6 ms |
9556 KB |
Output is correct |
210 |
Correct |
42 ms |
15720 KB |
Output is correct |
211 |
Correct |
75 ms |
20372 KB |
Output is correct |
212 |
Correct |
104 ms |
23608 KB |
Output is correct |
213 |
Correct |
107 ms |
25920 KB |
Output is correct |
214 |
Correct |
47 ms |
18212 KB |
Output is correct |
215 |
Correct |
49 ms |
18020 KB |
Output is correct |
216 |
Correct |
85 ms |
19916 KB |
Output is correct |
217 |
Correct |
82 ms |
18824 KB |
Output is correct |
218 |
Correct |
75 ms |
17612 KB |
Output is correct |
219 |
Correct |
75 ms |
17356 KB |
Output is correct |
220 |
Correct |
72 ms |
17200 KB |
Output is correct |
221 |
Correct |
65 ms |
17304 KB |
Output is correct |
222 |
Correct |
65 ms |
18680 KB |
Output is correct |
223 |
Correct |
93 ms |
21744 KB |
Output is correct |
224 |
Correct |
94 ms |
20856 KB |
Output is correct |
225 |
Correct |
89 ms |
18728 KB |
Output is correct |
226 |
Correct |
93 ms |
18532 KB |
Output is correct |
227 |
Correct |
85 ms |
18596 KB |
Output is correct |
228 |
Correct |
83 ms |
18140 KB |
Output is correct |
229 |
Correct |
74 ms |
17848 KB |
Output is correct |
230 |
Correct |
85 ms |
19140 KB |
Output is correct |
231 |
Correct |
87 ms |
19032 KB |
Output is correct |