#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define ll long long
#define int ll
#define all(v) v.begin(),v.end()
#define sz(s) ((int)s.size())
#define pb push_back
#define F first
#define S second
#define pii pair<int,int>
#define ppb pop_back
#define lb lower_bound
#define ub upper_bound
using namespace std;
const ll inf=1e18;
const int MAX=2e5+10;
const int mod=1e9+7;
int binpow(int a,int n){
if(!n)return 1;
if(n%2==1)return a*binpow(a,n-1)%mod;
int k=binpow(a,n/2);
return k*k%mod;
}
int n,m;
vector<int> g[MAX];
int tin[MAX],timer;
int fup[MAX];
bool use[MAX],cutPoint[MAX];
stack<int> st;
vector<int> ver[MAX];
vector<int> g1[MAX];
int cmp[MAX],cnt;
void dfs(int v,int p=-1){
st.push(v);
tin[v]=fup[v]=++timer;
use[v]=1;
int children=0;
for(auto to:g[v]){
if(to==p)continue;
if(!use[to]){
children++;
dfs(to,v);
fup[v]=min(fup[v],fup[to]);
if(fup[to]>=tin[v]){
cutPoint[v]=(p!=-1);
cnt++;
ver[cnt].pb(v);
g1[v].pb(cnt);
g1[cnt].pb(v);
while(ver[cnt].back()!=to){
g1[cnt].pb(st.top());
g1[st.top()].pb(cnt);
ver[cnt].pb(st.top());
st.pop();
}
}
}
else{
fup[v]=min(fup[v],tin[to]);
}
}
if(p==-1&&children>1){
cutPoint[v]=1;
}
}
int ans;
int zs[MAX];
int cur=0;
void calc(int v,int p=-1){
zs[v]=(v<=n);
use[v]=1;
for(auto to:g1[v]){
if(to==p)continue;
calc(to,v);
zs[v]+=zs[to];
if(v>n){
ans-=zs[to]*(zs[to]-1)*(sz(g1[v])-1);
}
}
if(v>n){
ans-=(cur-zs[v])*(cur-zs[v]-1)*(sz(g1[v])-1);
}
}
void calc_sz(int v,int p=-1){
cur+=(v<=n);
for(auto to:g1[v]){
if(to==p)continue;
calc_sz(to,v);
}
}
void bct(){
cnt=n;
for(int i=1;i<=n;i++){
if(!use[i])dfs(i);
}
for(int i=1;i<=n;i++){
// for(auto to:g1[i])cout<<i<<" "<<to<<"\n";
}
memset(use,0,sizeof(use));
for(int i=1;i<=n;i++){
if(!use[i]){
cur=0;
calc_sz(i);
// cout<<cur<<"\n";
ans+=cur*(cur-1)*(cur-2);
calc(i);
}
}
}
void solve(){
cin>>n>>m;
for(int i=1;i<=m;i++){
int a,b;
cin>>a>>b;
g[a].pb(b);
g[b].pb(a);
}
bct();
// cout<<n*(n-1)*(n-2)/3<<"\n";
cout<<ans<<"\n";
}
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t=1;
// cin>>t;
while(t--)solve();
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
20816 KB |
Output is correct |
2 |
Correct |
4 ms |
20816 KB |
Output is correct |
3 |
Correct |
4 ms |
20816 KB |
Output is correct |
4 |
Correct |
4 ms |
20816 KB |
Output is correct |
5 |
Correct |
4 ms |
20816 KB |
Output is correct |
6 |
Correct |
4 ms |
20816 KB |
Output is correct |
7 |
Correct |
4 ms |
20816 KB |
Output is correct |
8 |
Correct |
5 ms |
20816 KB |
Output is correct |
9 |
Correct |
4 ms |
20816 KB |
Output is correct |
10 |
Correct |
4 ms |
20816 KB |
Output is correct |
11 |
Correct |
4 ms |
20816 KB |
Output is correct |
12 |
Correct |
4 ms |
20816 KB |
Output is correct |
13 |
Correct |
4 ms |
20816 KB |
Output is correct |
14 |
Correct |
4 ms |
20816 KB |
Output is correct |
15 |
Correct |
4 ms |
20816 KB |
Output is correct |
16 |
Correct |
5 ms |
20816 KB |
Output is correct |
17 |
Correct |
5 ms |
20816 KB |
Output is correct |
18 |
Correct |
4 ms |
20816 KB |
Output is correct |
19 |
Correct |
5 ms |
20816 KB |
Output is correct |
20 |
Correct |
6 ms |
21072 KB |
Output is correct |
21 |
Correct |
4 ms |
20816 KB |
Output is correct |
22 |
Correct |
4 ms |
20816 KB |
Output is correct |
23 |
Correct |
5 ms |
20816 KB |
Output is correct |
24 |
Correct |
4 ms |
20816 KB |
Output is correct |
25 |
Correct |
4 ms |
20816 KB |
Output is correct |
26 |
Correct |
4 ms |
20984 KB |
Output is correct |
27 |
Correct |
4 ms |
20816 KB |
Output is correct |
28 |
Correct |
4 ms |
18768 KB |
Output is correct |
29 |
Correct |
4 ms |
20816 KB |
Output is correct |
30 |
Correct |
4 ms |
20816 KB |
Output is correct |
31 |
Correct |
4 ms |
20816 KB |
Output is correct |
32 |
Correct |
4 ms |
20816 KB |
Output is correct |
33 |
Correct |
4 ms |
20816 KB |
Output is correct |
34 |
Correct |
5 ms |
18768 KB |
Output is correct |
35 |
Correct |
7 ms |
18000 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
20816 KB |
Output is correct |
2 |
Correct |
4 ms |
20816 KB |
Output is correct |
3 |
Correct |
4 ms |
20816 KB |
Output is correct |
4 |
Correct |
4 ms |
20816 KB |
Output is correct |
5 |
Correct |
4 ms |
20816 KB |
Output is correct |
6 |
Correct |
4 ms |
20816 KB |
Output is correct |
7 |
Correct |
4 ms |
20816 KB |
Output is correct |
8 |
Correct |
5 ms |
20816 KB |
Output is correct |
9 |
Correct |
4 ms |
20816 KB |
Output is correct |
10 |
Correct |
4 ms |
20816 KB |
Output is correct |
11 |
Correct |
4 ms |
20816 KB |
Output is correct |
12 |
Correct |
4 ms |
20816 KB |
Output is correct |
13 |
Correct |
4 ms |
20816 KB |
Output is correct |
14 |
Correct |
4 ms |
20816 KB |
Output is correct |
15 |
Correct |
4 ms |
20816 KB |
Output is correct |
16 |
Correct |
5 ms |
20816 KB |
Output is correct |
17 |
Correct |
5 ms |
20816 KB |
Output is correct |
18 |
Correct |
4 ms |
20816 KB |
Output is correct |
19 |
Correct |
5 ms |
20816 KB |
Output is correct |
20 |
Correct |
6 ms |
21072 KB |
Output is correct |
21 |
Correct |
4 ms |
20816 KB |
Output is correct |
22 |
Correct |
4 ms |
20816 KB |
Output is correct |
23 |
Correct |
5 ms |
20816 KB |
Output is correct |
24 |
Correct |
4 ms |
20816 KB |
Output is correct |
25 |
Correct |
4 ms |
20816 KB |
Output is correct |
26 |
Correct |
4 ms |
20984 KB |
Output is correct |
27 |
Correct |
4 ms |
20816 KB |
Output is correct |
28 |
Correct |
4 ms |
18768 KB |
Output is correct |
29 |
Correct |
4 ms |
20816 KB |
Output is correct |
30 |
Correct |
4 ms |
20816 KB |
Output is correct |
31 |
Correct |
4 ms |
20816 KB |
Output is correct |
32 |
Correct |
4 ms |
20816 KB |
Output is correct |
33 |
Correct |
4 ms |
20816 KB |
Output is correct |
34 |
Correct |
5 ms |
18768 KB |
Output is correct |
35 |
Correct |
7 ms |
18000 KB |
Output is correct |
36 |
Correct |
9 ms |
16208 KB |
Output is correct |
37 |
Correct |
7 ms |
18000 KB |
Output is correct |
38 |
Correct |
5 ms |
20816 KB |
Output is correct |
39 |
Correct |
4 ms |
18768 KB |
Output is correct |
40 |
Correct |
4 ms |
20816 KB |
Output is correct |
41 |
Correct |
7 ms |
17936 KB |
Output is correct |
42 |
Correct |
5 ms |
20816 KB |
Output is correct |
43 |
Correct |
5 ms |
20996 KB |
Output is correct |
44 |
Correct |
4 ms |
20816 KB |
Output is correct |
45 |
Correct |
5 ms |
18768 KB |
Output is correct |
46 |
Correct |
9 ms |
18000 KB |
Output is correct |
47 |
Correct |
8 ms |
16208 KB |
Output is correct |
48 |
Correct |
9 ms |
18012 KB |
Output is correct |
49 |
Correct |
9 ms |
17884 KB |
Output is correct |
50 |
Correct |
4 ms |
20984 KB |
Output is correct |
51 |
Correct |
4 ms |
18768 KB |
Output is correct |
52 |
Correct |
4 ms |
20816 KB |
Output is correct |
53 |
Correct |
4 ms |
18768 KB |
Output is correct |
54 |
Correct |
4 ms |
20916 KB |
Output is correct |
55 |
Correct |
5 ms |
21072 KB |
Output is correct |
56 |
Correct |
4 ms |
20816 KB |
Output is correct |
57 |
Correct |
4 ms |
20816 KB |
Output is correct |
58 |
Correct |
3 ms |
18768 KB |
Output is correct |
59 |
Correct |
9 ms |
16208 KB |
Output is correct |
60 |
Correct |
8 ms |
16208 KB |
Output is correct |
61 |
Correct |
6 ms |
18168 KB |
Output is correct |
62 |
Correct |
6 ms |
18000 KB |
Output is correct |
63 |
Correct |
6 ms |
18000 KB |
Output is correct |
64 |
Correct |
4 ms |
20816 KB |
Output is correct |
65 |
Correct |
4 ms |
20816 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
53 ms |
37908 KB |
Output is correct |
2 |
Correct |
62 ms |
37464 KB |
Output is correct |
3 |
Correct |
62 ms |
37688 KB |
Output is correct |
4 |
Correct |
62 ms |
35892 KB |
Output is correct |
5 |
Correct |
63 ms |
35788 KB |
Output is correct |
6 |
Correct |
72 ms |
37948 KB |
Output is correct |
7 |
Correct |
70 ms |
33344 KB |
Output is correct |
8 |
Correct |
67 ms |
33856 KB |
Output is correct |
9 |
Correct |
59 ms |
32840 KB |
Output is correct |
10 |
Correct |
55 ms |
34624 KB |
Output is correct |
11 |
Correct |
49 ms |
29476 KB |
Output is correct |
12 |
Correct |
50 ms |
29000 KB |
Output is correct |
13 |
Correct |
46 ms |
29000 KB |
Output is correct |
14 |
Correct |
48 ms |
28488 KB |
Output is correct |
15 |
Correct |
43 ms |
27280 KB |
Output is correct |
16 |
Correct |
48 ms |
26828 KB |
Output is correct |
17 |
Correct |
5 ms |
22060 KB |
Output is correct |
18 |
Correct |
5 ms |
21840 KB |
Output is correct |
19 |
Correct |
10 ms |
18768 KB |
Output is correct |
20 |
Correct |
10 ms |
18768 KB |
Output is correct |
21 |
Correct |
10 ms |
18728 KB |
Output is correct |
22 |
Correct |
10 ms |
18768 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
16464 KB |
Output is correct |
2 |
Correct |
8 ms |
16336 KB |
Output is correct |
3 |
Correct |
9 ms |
16208 KB |
Output is correct |
4 |
Correct |
8 ms |
16464 KB |
Output is correct |
5 |
Correct |
8 ms |
16464 KB |
Output is correct |
6 |
Correct |
11 ms |
16416 KB |
Output is correct |
7 |
Correct |
8 ms |
16464 KB |
Output is correct |
8 |
Correct |
4 ms |
21072 KB |
Output is correct |
9 |
Correct |
9 ms |
16464 KB |
Output is correct |
10 |
Correct |
9 ms |
16632 KB |
Output is correct |
11 |
Correct |
9 ms |
18000 KB |
Output is correct |
12 |
Correct |
4 ms |
21036 KB |
Output is correct |
13 |
Correct |
5 ms |
19024 KB |
Output is correct |
14 |
Correct |
5 ms |
19196 KB |
Output is correct |
15 |
Correct |
9 ms |
16208 KB |
Output is correct |
16 |
Correct |
10 ms |
16208 KB |
Output is correct |
17 |
Correct |
10 ms |
16464 KB |
Output is correct |
18 |
Correct |
10 ms |
16464 KB |
Output is correct |
19 |
Correct |
13 ms |
16356 KB |
Output is correct |
20 |
Correct |
9 ms |
16464 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
72 ms |
34636 KB |
Output is correct |
2 |
Correct |
80 ms |
33740 KB |
Output is correct |
3 |
Correct |
81 ms |
33708 KB |
Output is correct |
4 |
Correct |
88 ms |
33728 KB |
Output is correct |
5 |
Correct |
89 ms |
34632 KB |
Output is correct |
6 |
Correct |
81 ms |
41804 KB |
Output is correct |
7 |
Correct |
77 ms |
41296 KB |
Output is correct |
8 |
Correct |
76 ms |
39148 KB |
Output is correct |
9 |
Correct |
91 ms |
35912 KB |
Output is correct |
10 |
Correct |
71 ms |
35656 KB |
Output is correct |
11 |
Correct |
71 ms |
36068 KB |
Output is correct |
12 |
Correct |
73 ms |
36188 KB |
Output is correct |
13 |
Correct |
84 ms |
35948 KB |
Output is correct |
14 |
Correct |
85 ms |
34884 KB |
Output is correct |
15 |
Correct |
63 ms |
33864 KB |
Output is correct |
16 |
Correct |
42 ms |
30024 KB |
Output is correct |
17 |
Correct |
63 ms |
36460 KB |
Output is correct |
18 |
Correct |
59 ms |
36408 KB |
Output is correct |
19 |
Correct |
60 ms |
36760 KB |
Output is correct |
20 |
Correct |
61 ms |
36392 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
21072 KB |
Output is correct |
2 |
Correct |
5 ms |
21072 KB |
Output is correct |
3 |
Correct |
5 ms |
21072 KB |
Output is correct |
4 |
Correct |
4 ms |
21072 KB |
Output is correct |
5 |
Correct |
5 ms |
21072 KB |
Output is correct |
6 |
Correct |
6 ms |
19024 KB |
Output is correct |
7 |
Correct |
4 ms |
19024 KB |
Output is correct |
8 |
Correct |
4 ms |
19024 KB |
Output is correct |
9 |
Correct |
5 ms |
19024 KB |
Output is correct |
10 |
Correct |
4 ms |
21072 KB |
Output is correct |
11 |
Correct |
6 ms |
19024 KB |
Output is correct |
12 |
Correct |
5 ms |
19024 KB |
Output is correct |
13 |
Correct |
5 ms |
21072 KB |
Output is correct |
14 |
Correct |
4 ms |
21072 KB |
Output is correct |
15 |
Correct |
5 ms |
21124 KB |
Output is correct |
16 |
Correct |
5 ms |
21240 KB |
Output is correct |
17 |
Correct |
5 ms |
21072 KB |
Output is correct |
18 |
Correct |
5 ms |
19024 KB |
Output is correct |
19 |
Correct |
4 ms |
21072 KB |
Output is correct |
20 |
Correct |
4 ms |
21244 KB |
Output is correct |
21 |
Correct |
5 ms |
19024 KB |
Output is correct |
22 |
Correct |
5 ms |
19024 KB |
Output is correct |
23 |
Correct |
5 ms |
19140 KB |
Output is correct |
24 |
Correct |
5 ms |
19024 KB |
Output is correct |
25 |
Correct |
3 ms |
21072 KB |
Output is correct |
26 |
Correct |
3 ms |
19024 KB |
Output is correct |
27 |
Correct |
4 ms |
20816 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
68 ms |
36168 KB |
Output is correct |
2 |
Correct |
82 ms |
35912 KB |
Output is correct |
3 |
Correct |
86 ms |
34900 KB |
Output is correct |
4 |
Correct |
72 ms |
34376 KB |
Output is correct |
5 |
Correct |
63 ms |
32584 KB |
Output is correct |
6 |
Correct |
61 ms |
30952 KB |
Output is correct |
7 |
Correct |
72 ms |
32056 KB |
Output is correct |
8 |
Correct |
54 ms |
31560 KB |
Output is correct |
9 |
Correct |
51 ms |
31648 KB |
Output is correct |
10 |
Correct |
51 ms |
31304 KB |
Output is correct |
11 |
Correct |
48 ms |
31304 KB |
Output is correct |
12 |
Correct |
45 ms |
31048 KB |
Output is correct |
13 |
Correct |
42 ms |
31048 KB |
Output is correct |
14 |
Correct |
53 ms |
32552 KB |
Output is correct |
15 |
Correct |
91 ms |
40920 KB |
Output is correct |
16 |
Correct |
82 ms |
39532 KB |
Output is correct |
17 |
Correct |
74 ms |
39656 KB |
Output is correct |
18 |
Correct |
70 ms |
38236 KB |
Output is correct |
19 |
Correct |
65 ms |
34120 KB |
Output is correct |
20 |
Correct |
62 ms |
34376 KB |
Output is correct |
21 |
Correct |
75 ms |
34376 KB |
Output is correct |
22 |
Correct |
63 ms |
33352 KB |
Output is correct |
23 |
Correct |
54 ms |
32328 KB |
Output is correct |
24 |
Correct |
57 ms |
35660 KB |
Output is correct |
25 |
Correct |
70 ms |
35780 KB |
Output is correct |
26 |
Correct |
58 ms |
34760 KB |
Output is correct |
27 |
Correct |
67 ms |
34888 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
20816 KB |
Output is correct |
2 |
Correct |
4 ms |
20816 KB |
Output is correct |
3 |
Correct |
4 ms |
20816 KB |
Output is correct |
4 |
Correct |
4 ms |
20816 KB |
Output is correct |
5 |
Correct |
4 ms |
20816 KB |
Output is correct |
6 |
Correct |
4 ms |
20816 KB |
Output is correct |
7 |
Correct |
4 ms |
20816 KB |
Output is correct |
8 |
Correct |
5 ms |
20816 KB |
Output is correct |
9 |
Correct |
4 ms |
20816 KB |
Output is correct |
10 |
Correct |
4 ms |
20816 KB |
Output is correct |
11 |
Correct |
4 ms |
20816 KB |
Output is correct |
12 |
Correct |
4 ms |
20816 KB |
Output is correct |
13 |
Correct |
4 ms |
20816 KB |
Output is correct |
14 |
Correct |
4 ms |
20816 KB |
Output is correct |
15 |
Correct |
4 ms |
20816 KB |
Output is correct |
16 |
Correct |
5 ms |
20816 KB |
Output is correct |
17 |
Correct |
5 ms |
20816 KB |
Output is correct |
18 |
Correct |
4 ms |
20816 KB |
Output is correct |
19 |
Correct |
5 ms |
20816 KB |
Output is correct |
20 |
Correct |
6 ms |
21072 KB |
Output is correct |
21 |
Correct |
4 ms |
20816 KB |
Output is correct |
22 |
Correct |
4 ms |
20816 KB |
Output is correct |
23 |
Correct |
5 ms |
20816 KB |
Output is correct |
24 |
Correct |
4 ms |
20816 KB |
Output is correct |
25 |
Correct |
4 ms |
20816 KB |
Output is correct |
26 |
Correct |
4 ms |
20984 KB |
Output is correct |
27 |
Correct |
4 ms |
20816 KB |
Output is correct |
28 |
Correct |
4 ms |
18768 KB |
Output is correct |
29 |
Correct |
4 ms |
20816 KB |
Output is correct |
30 |
Correct |
4 ms |
20816 KB |
Output is correct |
31 |
Correct |
4 ms |
20816 KB |
Output is correct |
32 |
Correct |
4 ms |
20816 KB |
Output is correct |
33 |
Correct |
4 ms |
20816 KB |
Output is correct |
34 |
Correct |
5 ms |
18768 KB |
Output is correct |
35 |
Correct |
7 ms |
18000 KB |
Output is correct |
36 |
Correct |
9 ms |
16208 KB |
Output is correct |
37 |
Correct |
7 ms |
18000 KB |
Output is correct |
38 |
Correct |
5 ms |
20816 KB |
Output is correct |
39 |
Correct |
4 ms |
18768 KB |
Output is correct |
40 |
Correct |
4 ms |
20816 KB |
Output is correct |
41 |
Correct |
7 ms |
17936 KB |
Output is correct |
42 |
Correct |
5 ms |
20816 KB |
Output is correct |
43 |
Correct |
5 ms |
20996 KB |
Output is correct |
44 |
Correct |
4 ms |
20816 KB |
Output is correct |
45 |
Correct |
5 ms |
18768 KB |
Output is correct |
46 |
Correct |
9 ms |
18000 KB |
Output is correct |
47 |
Correct |
8 ms |
16208 KB |
Output is correct |
48 |
Correct |
9 ms |
18012 KB |
Output is correct |
49 |
Correct |
9 ms |
17884 KB |
Output is correct |
50 |
Correct |
4 ms |
20984 KB |
Output is correct |
51 |
Correct |
4 ms |
18768 KB |
Output is correct |
52 |
Correct |
4 ms |
20816 KB |
Output is correct |
53 |
Correct |
4 ms |
18768 KB |
Output is correct |
54 |
Correct |
4 ms |
20916 KB |
Output is correct |
55 |
Correct |
5 ms |
21072 KB |
Output is correct |
56 |
Correct |
4 ms |
20816 KB |
Output is correct |
57 |
Correct |
4 ms |
20816 KB |
Output is correct |
58 |
Correct |
3 ms |
18768 KB |
Output is correct |
59 |
Correct |
9 ms |
16208 KB |
Output is correct |
60 |
Correct |
8 ms |
16208 KB |
Output is correct |
61 |
Correct |
6 ms |
18168 KB |
Output is correct |
62 |
Correct |
6 ms |
18000 KB |
Output is correct |
63 |
Correct |
6 ms |
18000 KB |
Output is correct |
64 |
Correct |
4 ms |
20816 KB |
Output is correct |
65 |
Correct |
4 ms |
20816 KB |
Output is correct |
66 |
Correct |
3 ms |
20816 KB |
Output is correct |
67 |
Correct |
4 ms |
21072 KB |
Output is correct |
68 |
Correct |
5 ms |
19024 KB |
Output is correct |
69 |
Correct |
4 ms |
21072 KB |
Output is correct |
70 |
Correct |
4 ms |
21072 KB |
Output is correct |
71 |
Correct |
4 ms |
21072 KB |
Output is correct |
72 |
Correct |
4 ms |
21072 KB |
Output is correct |
73 |
Correct |
4 ms |
21072 KB |
Output is correct |
74 |
Correct |
5 ms |
21240 KB |
Output is correct |
75 |
Correct |
4 ms |
21072 KB |
Output is correct |
76 |
Correct |
4 ms |
20816 KB |
Output is correct |
77 |
Correct |
4 ms |
21072 KB |
Output is correct |
78 |
Correct |
5 ms |
21072 KB |
Output is correct |
79 |
Correct |
4 ms |
21072 KB |
Output is correct |
80 |
Correct |
4 ms |
21072 KB |
Output is correct |
81 |
Correct |
6 ms |
21072 KB |
Output is correct |
82 |
Correct |
7 ms |
21072 KB |
Output is correct |
83 |
Correct |
5 ms |
21072 KB |
Output is correct |
84 |
Correct |
5 ms |
21172 KB |
Output is correct |
85 |
Correct |
5 ms |
21072 KB |
Output is correct |
86 |
Correct |
4 ms |
21072 KB |
Output is correct |
87 |
Correct |
4 ms |
21072 KB |
Output is correct |
88 |
Correct |
5 ms |
20980 KB |
Output is correct |
89 |
Correct |
4 ms |
21072 KB |
Output is correct |
90 |
Correct |
4 ms |
21072 KB |
Output is correct |
91 |
Correct |
4 ms |
21072 KB |
Output is correct |
92 |
Correct |
4 ms |
21072 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
20816 KB |
Output is correct |
2 |
Correct |
4 ms |
20816 KB |
Output is correct |
3 |
Correct |
4 ms |
20816 KB |
Output is correct |
4 |
Correct |
4 ms |
20816 KB |
Output is correct |
5 |
Correct |
4 ms |
20816 KB |
Output is correct |
6 |
Correct |
4 ms |
20816 KB |
Output is correct |
7 |
Correct |
4 ms |
20816 KB |
Output is correct |
8 |
Correct |
5 ms |
20816 KB |
Output is correct |
9 |
Correct |
4 ms |
20816 KB |
Output is correct |
10 |
Correct |
4 ms |
20816 KB |
Output is correct |
11 |
Correct |
4 ms |
20816 KB |
Output is correct |
12 |
Correct |
4 ms |
20816 KB |
Output is correct |
13 |
Correct |
4 ms |
20816 KB |
Output is correct |
14 |
Correct |
4 ms |
20816 KB |
Output is correct |
15 |
Correct |
4 ms |
20816 KB |
Output is correct |
16 |
Correct |
5 ms |
20816 KB |
Output is correct |
17 |
Correct |
5 ms |
20816 KB |
Output is correct |
18 |
Correct |
4 ms |
20816 KB |
Output is correct |
19 |
Correct |
5 ms |
20816 KB |
Output is correct |
20 |
Correct |
6 ms |
21072 KB |
Output is correct |
21 |
Correct |
4 ms |
20816 KB |
Output is correct |
22 |
Correct |
4 ms |
20816 KB |
Output is correct |
23 |
Correct |
5 ms |
20816 KB |
Output is correct |
24 |
Correct |
4 ms |
20816 KB |
Output is correct |
25 |
Correct |
4 ms |
20816 KB |
Output is correct |
26 |
Correct |
4 ms |
20984 KB |
Output is correct |
27 |
Correct |
4 ms |
20816 KB |
Output is correct |
28 |
Correct |
4 ms |
18768 KB |
Output is correct |
29 |
Correct |
4 ms |
20816 KB |
Output is correct |
30 |
Correct |
4 ms |
20816 KB |
Output is correct |
31 |
Correct |
4 ms |
20816 KB |
Output is correct |
32 |
Correct |
4 ms |
20816 KB |
Output is correct |
33 |
Correct |
4 ms |
20816 KB |
Output is correct |
34 |
Correct |
5 ms |
18768 KB |
Output is correct |
35 |
Correct |
7 ms |
18000 KB |
Output is correct |
36 |
Correct |
9 ms |
16208 KB |
Output is correct |
37 |
Correct |
7 ms |
18000 KB |
Output is correct |
38 |
Correct |
5 ms |
20816 KB |
Output is correct |
39 |
Correct |
4 ms |
18768 KB |
Output is correct |
40 |
Correct |
4 ms |
20816 KB |
Output is correct |
41 |
Correct |
7 ms |
17936 KB |
Output is correct |
42 |
Correct |
5 ms |
20816 KB |
Output is correct |
43 |
Correct |
5 ms |
20996 KB |
Output is correct |
44 |
Correct |
4 ms |
20816 KB |
Output is correct |
45 |
Correct |
5 ms |
18768 KB |
Output is correct |
46 |
Correct |
9 ms |
18000 KB |
Output is correct |
47 |
Correct |
8 ms |
16208 KB |
Output is correct |
48 |
Correct |
9 ms |
18012 KB |
Output is correct |
49 |
Correct |
9 ms |
17884 KB |
Output is correct |
50 |
Correct |
4 ms |
20984 KB |
Output is correct |
51 |
Correct |
4 ms |
18768 KB |
Output is correct |
52 |
Correct |
4 ms |
20816 KB |
Output is correct |
53 |
Correct |
4 ms |
18768 KB |
Output is correct |
54 |
Correct |
4 ms |
20916 KB |
Output is correct |
55 |
Correct |
5 ms |
21072 KB |
Output is correct |
56 |
Correct |
4 ms |
20816 KB |
Output is correct |
57 |
Correct |
4 ms |
20816 KB |
Output is correct |
58 |
Correct |
3 ms |
18768 KB |
Output is correct |
59 |
Correct |
9 ms |
16208 KB |
Output is correct |
60 |
Correct |
8 ms |
16208 KB |
Output is correct |
61 |
Correct |
6 ms |
18168 KB |
Output is correct |
62 |
Correct |
6 ms |
18000 KB |
Output is correct |
63 |
Correct |
6 ms |
18000 KB |
Output is correct |
64 |
Correct |
4 ms |
20816 KB |
Output is correct |
65 |
Correct |
4 ms |
20816 KB |
Output is correct |
66 |
Correct |
53 ms |
37908 KB |
Output is correct |
67 |
Correct |
62 ms |
37464 KB |
Output is correct |
68 |
Correct |
62 ms |
37688 KB |
Output is correct |
69 |
Correct |
62 ms |
35892 KB |
Output is correct |
70 |
Correct |
63 ms |
35788 KB |
Output is correct |
71 |
Correct |
72 ms |
37948 KB |
Output is correct |
72 |
Correct |
70 ms |
33344 KB |
Output is correct |
73 |
Correct |
67 ms |
33856 KB |
Output is correct |
74 |
Correct |
59 ms |
32840 KB |
Output is correct |
75 |
Correct |
55 ms |
34624 KB |
Output is correct |
76 |
Correct |
49 ms |
29476 KB |
Output is correct |
77 |
Correct |
50 ms |
29000 KB |
Output is correct |
78 |
Correct |
46 ms |
29000 KB |
Output is correct |
79 |
Correct |
48 ms |
28488 KB |
Output is correct |
80 |
Correct |
43 ms |
27280 KB |
Output is correct |
81 |
Correct |
48 ms |
26828 KB |
Output is correct |
82 |
Correct |
5 ms |
22060 KB |
Output is correct |
83 |
Correct |
5 ms |
21840 KB |
Output is correct |
84 |
Correct |
10 ms |
18768 KB |
Output is correct |
85 |
Correct |
10 ms |
18768 KB |
Output is correct |
86 |
Correct |
10 ms |
18728 KB |
Output is correct |
87 |
Correct |
10 ms |
18768 KB |
Output is correct |
88 |
Correct |
9 ms |
16464 KB |
Output is correct |
89 |
Correct |
8 ms |
16336 KB |
Output is correct |
90 |
Correct |
9 ms |
16208 KB |
Output is correct |
91 |
Correct |
8 ms |
16464 KB |
Output is correct |
92 |
Correct |
8 ms |
16464 KB |
Output is correct |
93 |
Correct |
11 ms |
16416 KB |
Output is correct |
94 |
Correct |
8 ms |
16464 KB |
Output is correct |
95 |
Correct |
4 ms |
21072 KB |
Output is correct |
96 |
Correct |
9 ms |
16464 KB |
Output is correct |
97 |
Correct |
9 ms |
16632 KB |
Output is correct |
98 |
Correct |
9 ms |
18000 KB |
Output is correct |
99 |
Correct |
4 ms |
21036 KB |
Output is correct |
100 |
Correct |
5 ms |
19024 KB |
Output is correct |
101 |
Correct |
5 ms |
19196 KB |
Output is correct |
102 |
Correct |
9 ms |
16208 KB |
Output is correct |
103 |
Correct |
10 ms |
16208 KB |
Output is correct |
104 |
Correct |
10 ms |
16464 KB |
Output is correct |
105 |
Correct |
10 ms |
16464 KB |
Output is correct |
106 |
Correct |
13 ms |
16356 KB |
Output is correct |
107 |
Correct |
9 ms |
16464 KB |
Output is correct |
108 |
Correct |
72 ms |
34636 KB |
Output is correct |
109 |
Correct |
80 ms |
33740 KB |
Output is correct |
110 |
Correct |
81 ms |
33708 KB |
Output is correct |
111 |
Correct |
88 ms |
33728 KB |
Output is correct |
112 |
Correct |
89 ms |
34632 KB |
Output is correct |
113 |
Correct |
81 ms |
41804 KB |
Output is correct |
114 |
Correct |
77 ms |
41296 KB |
Output is correct |
115 |
Correct |
76 ms |
39148 KB |
Output is correct |
116 |
Correct |
91 ms |
35912 KB |
Output is correct |
117 |
Correct |
71 ms |
35656 KB |
Output is correct |
118 |
Correct |
71 ms |
36068 KB |
Output is correct |
119 |
Correct |
73 ms |
36188 KB |
Output is correct |
120 |
Correct |
84 ms |
35948 KB |
Output is correct |
121 |
Correct |
85 ms |
34884 KB |
Output is correct |
122 |
Correct |
63 ms |
33864 KB |
Output is correct |
123 |
Correct |
42 ms |
30024 KB |
Output is correct |
124 |
Correct |
63 ms |
36460 KB |
Output is correct |
125 |
Correct |
59 ms |
36408 KB |
Output is correct |
126 |
Correct |
60 ms |
36760 KB |
Output is correct |
127 |
Correct |
61 ms |
36392 KB |
Output is correct |
128 |
Correct |
5 ms |
21072 KB |
Output is correct |
129 |
Correct |
5 ms |
21072 KB |
Output is correct |
130 |
Correct |
5 ms |
21072 KB |
Output is correct |
131 |
Correct |
4 ms |
21072 KB |
Output is correct |
132 |
Correct |
5 ms |
21072 KB |
Output is correct |
133 |
Correct |
6 ms |
19024 KB |
Output is correct |
134 |
Correct |
4 ms |
19024 KB |
Output is correct |
135 |
Correct |
4 ms |
19024 KB |
Output is correct |
136 |
Correct |
5 ms |
19024 KB |
Output is correct |
137 |
Correct |
4 ms |
21072 KB |
Output is correct |
138 |
Correct |
6 ms |
19024 KB |
Output is correct |
139 |
Correct |
5 ms |
19024 KB |
Output is correct |
140 |
Correct |
5 ms |
21072 KB |
Output is correct |
141 |
Correct |
4 ms |
21072 KB |
Output is correct |
142 |
Correct |
5 ms |
21124 KB |
Output is correct |
143 |
Correct |
5 ms |
21240 KB |
Output is correct |
144 |
Correct |
5 ms |
21072 KB |
Output is correct |
145 |
Correct |
5 ms |
19024 KB |
Output is correct |
146 |
Correct |
4 ms |
21072 KB |
Output is correct |
147 |
Correct |
4 ms |
21244 KB |
Output is correct |
148 |
Correct |
5 ms |
19024 KB |
Output is correct |
149 |
Correct |
5 ms |
19024 KB |
Output is correct |
150 |
Correct |
5 ms |
19140 KB |
Output is correct |
151 |
Correct |
5 ms |
19024 KB |
Output is correct |
152 |
Correct |
3 ms |
21072 KB |
Output is correct |
153 |
Correct |
3 ms |
19024 KB |
Output is correct |
154 |
Correct |
4 ms |
20816 KB |
Output is correct |
155 |
Correct |
68 ms |
36168 KB |
Output is correct |
156 |
Correct |
82 ms |
35912 KB |
Output is correct |
157 |
Correct |
86 ms |
34900 KB |
Output is correct |
158 |
Correct |
72 ms |
34376 KB |
Output is correct |
159 |
Correct |
63 ms |
32584 KB |
Output is correct |
160 |
Correct |
61 ms |
30952 KB |
Output is correct |
161 |
Correct |
72 ms |
32056 KB |
Output is correct |
162 |
Correct |
54 ms |
31560 KB |
Output is correct |
163 |
Correct |
51 ms |
31648 KB |
Output is correct |
164 |
Correct |
51 ms |
31304 KB |
Output is correct |
165 |
Correct |
48 ms |
31304 KB |
Output is correct |
166 |
Correct |
45 ms |
31048 KB |
Output is correct |
167 |
Correct |
42 ms |
31048 KB |
Output is correct |
168 |
Correct |
53 ms |
32552 KB |
Output is correct |
169 |
Correct |
91 ms |
40920 KB |
Output is correct |
170 |
Correct |
82 ms |
39532 KB |
Output is correct |
171 |
Correct |
74 ms |
39656 KB |
Output is correct |
172 |
Correct |
70 ms |
38236 KB |
Output is correct |
173 |
Correct |
65 ms |
34120 KB |
Output is correct |
174 |
Correct |
62 ms |
34376 KB |
Output is correct |
175 |
Correct |
75 ms |
34376 KB |
Output is correct |
176 |
Correct |
63 ms |
33352 KB |
Output is correct |
177 |
Correct |
54 ms |
32328 KB |
Output is correct |
178 |
Correct |
57 ms |
35660 KB |
Output is correct |
179 |
Correct |
70 ms |
35780 KB |
Output is correct |
180 |
Correct |
58 ms |
34760 KB |
Output is correct |
181 |
Correct |
67 ms |
34888 KB |
Output is correct |
182 |
Correct |
3 ms |
20816 KB |
Output is correct |
183 |
Correct |
4 ms |
21072 KB |
Output is correct |
184 |
Correct |
5 ms |
19024 KB |
Output is correct |
185 |
Correct |
4 ms |
21072 KB |
Output is correct |
186 |
Correct |
4 ms |
21072 KB |
Output is correct |
187 |
Correct |
4 ms |
21072 KB |
Output is correct |
188 |
Correct |
4 ms |
21072 KB |
Output is correct |
189 |
Correct |
4 ms |
21072 KB |
Output is correct |
190 |
Correct |
5 ms |
21240 KB |
Output is correct |
191 |
Correct |
4 ms |
21072 KB |
Output is correct |
192 |
Correct |
4 ms |
20816 KB |
Output is correct |
193 |
Correct |
4 ms |
21072 KB |
Output is correct |
194 |
Correct |
5 ms |
21072 KB |
Output is correct |
195 |
Correct |
4 ms |
21072 KB |
Output is correct |
196 |
Correct |
4 ms |
21072 KB |
Output is correct |
197 |
Correct |
6 ms |
21072 KB |
Output is correct |
198 |
Correct |
7 ms |
21072 KB |
Output is correct |
199 |
Correct |
5 ms |
21072 KB |
Output is correct |
200 |
Correct |
5 ms |
21172 KB |
Output is correct |
201 |
Correct |
5 ms |
21072 KB |
Output is correct |
202 |
Correct |
4 ms |
21072 KB |
Output is correct |
203 |
Correct |
4 ms |
21072 KB |
Output is correct |
204 |
Correct |
5 ms |
20980 KB |
Output is correct |
205 |
Correct |
4 ms |
21072 KB |
Output is correct |
206 |
Correct |
4 ms |
21072 KB |
Output is correct |
207 |
Correct |
4 ms |
21072 KB |
Output is correct |
208 |
Correct |
4 ms |
21072 KB |
Output is correct |
209 |
Correct |
6 ms |
21840 KB |
Output is correct |
210 |
Correct |
38 ms |
29512 KB |
Output is correct |
211 |
Correct |
79 ms |
33832 KB |
Output is correct |
212 |
Correct |
68 ms |
36592 KB |
Output is correct |
213 |
Correct |
87 ms |
38868 KB |
Output is correct |
214 |
Correct |
53 ms |
32840 KB |
Output is correct |
215 |
Correct |
62 ms |
32976 KB |
Output is correct |
216 |
Correct |
75 ms |
35656 KB |
Output is correct |
217 |
Correct |
67 ms |
33868 KB |
Output is correct |
218 |
Correct |
64 ms |
31884 KB |
Output is correct |
219 |
Correct |
53 ms |
31156 KB |
Output is correct |
220 |
Correct |
48 ms |
31304 KB |
Output is correct |
221 |
Correct |
48 ms |
30968 KB |
Output is correct |
222 |
Correct |
63 ms |
31560 KB |
Output is correct |
223 |
Correct |
72 ms |
36208 KB |
Output is correct |
224 |
Correct |
64 ms |
35400 KB |
Output is correct |
225 |
Correct |
59 ms |
33612 KB |
Output is correct |
226 |
Correct |
73 ms |
33608 KB |
Output is correct |
227 |
Correct |
69 ms |
32328 KB |
Output is correct |
228 |
Correct |
65 ms |
33008 KB |
Output is correct |
229 |
Correct |
54 ms |
32072 KB |
Output is correct |
230 |
Correct |
63 ms |
33724 KB |
Output is correct |
231 |
Correct |
65 ms |
34008 KB |
Output is correct |