답안 #548981

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
548981 2022-04-14T21:22:48 Z leaked 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
169 ms 35088 KB
#include <bits/stdc++.h>

#define f first
#define s second
#define m_p make_pair
#define vec vector
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define sz(x) (int)(x).size()
#define pw(x) (1LL<<(x))
#define fast_prep ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using namespace std;
typedef pair<int,int> pii;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> pll;
typedef unsigned long long ull;
//#define int long long
template<class T> bool umin(T &a,const T &b){return (a>b?a=b,1:0);}
template<class T> bool umax(T &a,const T &b){return (a<b?a=b,1:0);}
const int N=1e5+1;
vec<int> g[N];
vec<int> gr[2*N];
int sz[2*N];
int n;
vec<pii> vc;
int in[N],fup[N],tt=1;
vec<vec<pii>> wo;
int cm=1;
int siz[2*N];
void dfs1(int v,int p){
    in[v]=fup[v]=tt++;
    for(auto &z : g[v]){
        if(z==p) continue;
//        cout<<
        if(in[z]){
            umin(fup[v],in[z]);
            if(in[z]<in[v]) vc.pb({v,z});
        }
        else{
            vc.pb({v,z});
            dfs1(z,v);
            umin(fup[v],fup[z]);
            if(fup[z]>=in[v]){
                vec<pii> cur;
                while(vc.back()!=m_p(v,z)) cur.pb(vc.back()),vc.pop_back();
                cur.pb(vc.back());vc.pop_back();
                wo.pb(cur);
//                cout<<sz(cur)<<endl;
            }
        }
    }
}
int dp[N];
void dfs2(int v,int p){
    dp[v]=(v<=n);
//    cout<<"WE "<<v<<' '<<dp[v]<<endl;
    for(auto &z : gr[v]){
        if(z==p) continue;
        dfs2(z,v);
        dp[v]+=dp[z];
    }
}
ll ans=0;
void dfs3(int v,int full,int p){
    if(v<=n){
        for(auto &z : gr[v]){
            if(z!=p){
                ans-=1ll*(siz[z]-1)*(full-dp[z])*(full-dp[z]-1);
            }
            else{
                ans-=1ll*(siz[z]-1)*(dp[v])*(dp[v]-1);
            }
        }
    }
    for(auto &z : gr[v]) {
        if(z==p) continue;
        dfs3(z,full,v);
    }
}
void init(){
    for(int i=1;i<=n;i++){
        if(!in[i]){

            dfs1(i,i);
            if(sz(vc)) wo.pb(vc);
            vc.clear();
            if(!sz(wo)) continue;

            for(auto &i : wo){
                set<int>st;
                for(auto &j : i) st.insert(j.f),st.insert(j.s);
                siz[n+cm]=sz(st);
                for(auto &j : st) gr[n+cm].pb(j),gr[j].pb(n+cm);
                ++cm;
            }
            wo.clear();
//            if(!sz(wo)) continue;
//            cout<<"WO "<<endl;
            dfs2(n+cm-1,n+cm-1);
            dfs3(n+cm-1,dp[n+cm-1],-1);
            ans+=1ll*dp[n+cm-1]*(dp[n+cm-1]-1)*(dp[n+cm-1]-2);
        }
    }
}
signed main(){
    fast_prep;
    int m;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        int v,u;
        cin>>v>>u;
        g[v].pb(u);g[u].pb(v);
    }
    init();
    cout<<ans;
    return 0;
}
/*
abbaaa
cbbbbccbbccbbbbbbc
(((((((()))())))))
5 5
4 2
2 5
4 1
2 1
4 5

*/
# 결과 실행 시간 메모리 Grader output
1 Correct 5 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 5 ms 7364 KB Output is correct
6 Correct 4 ms 7384 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 5 ms 7272 KB Output is correct
9 Correct 5 ms 7352 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 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 7 ms 7380 KB Output is correct
16 Correct 5 ms 7380 KB Output is correct
17 Correct 6 ms 7380 KB Output is correct
18 Correct 4 ms 7384 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 6 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 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 7380 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 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 5 ms 7364 KB Output is correct
6 Correct 4 ms 7384 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 5 ms 7272 KB Output is correct
9 Correct 5 ms 7352 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 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 7 ms 7380 KB Output is correct
16 Correct 5 ms 7380 KB Output is correct
17 Correct 6 ms 7380 KB Output is correct
18 Correct 4 ms 7384 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 6 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 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 7380 KB Output is correct
36 Correct 4 ms 7380 KB Output is correct
37 Correct 4 ms 7380 KB Output is correct
38 Correct 5 ms 7380 KB Output is correct
39 Correct 4 ms 7316 KB Output is correct
40 Correct 5 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 7380 KB Output is correct
44 Correct 4 ms 7380 KB Output is correct
45 Correct 5 ms 7380 KB Output is correct
46 Correct 4 ms 7380 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 7380 KB Output is correct
50 Correct 6 ms 7380 KB Output is correct
51 Correct 7 ms 7380 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7380 KB Output is correct
54 Correct 6 ms 7336 KB Output is correct
55 Correct 6 ms 7380 KB Output is correct
56 Correct 5 ms 7380 KB Output is correct
57 Correct 6 ms 7380 KB Output is correct
58 Correct 6 ms 7380 KB Output is correct
59 Correct 6 ms 7380 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 6 ms 7380 KB Output is correct
62 Correct 5 ms 7380 KB Output is correct
63 Correct 5 ms 7308 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 155 ms 35060 KB Output is correct
2 Correct 127 ms 35088 KB Output is correct
3 Correct 139 ms 27024 KB Output is correct
4 Correct 111 ms 31892 KB Output is correct
5 Correct 124 ms 23188 KB Output is correct
6 Correct 127 ms 24692 KB Output is correct
7 Correct 138 ms 21820 KB Output is correct
8 Correct 132 ms 23788 KB Output is correct
9 Correct 129 ms 19380 KB Output is correct
10 Correct 129 ms 20524 KB Output is correct
11 Correct 109 ms 16652 KB Output is correct
12 Correct 116 ms 16488 KB Output is correct
13 Correct 86 ms 16336 KB Output is correct
14 Correct 86 ms 16044 KB Output is correct
15 Correct 69 ms 15196 KB Output is correct
16 Correct 78 ms 14992 KB Output is correct
17 Correct 6 ms 8532 KB Output is correct
18 Correct 7 ms 8480 KB Output is correct
19 Correct 6 ms 8532 KB Output is correct
20 Correct 7 ms 8448 KB Output is correct
21 Correct 6 ms 8472 KB Output is correct
22 Correct 7 ms 8404 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7548 KB Output is correct
2 Correct 5 ms 7508 KB Output is correct
3 Correct 6 ms 7556 KB Output is correct
4 Correct 5 ms 7636 KB Output is correct
5 Correct 5 ms 7636 KB Output is correct
6 Correct 6 ms 7508 KB Output is correct
7 Correct 5 ms 7556 KB Output is correct
8 Correct 5 ms 7508 KB Output is correct
9 Correct 7 ms 7508 KB Output is correct
10 Correct 7 ms 7508 KB Output is correct
11 Correct 7 ms 7508 KB Output is correct
12 Correct 5 ms 7516 KB Output is correct
13 Correct 9 ms 7508 KB Output is correct
14 Correct 6 ms 7380 KB Output is correct
15 Correct 6 ms 7380 KB Output is correct
16 Correct 6 ms 7468 KB Output is correct
17 Correct 6 ms 7508 KB Output is correct
18 Correct 4 ms 7508 KB Output is correct
19 Correct 7 ms 7508 KB Output is correct
20 Correct 5 ms 7508 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 121 ms 24416 KB Output is correct
2 Correct 138 ms 24372 KB Output is correct
3 Correct 131 ms 24324 KB Output is correct
4 Correct 127 ms 24308 KB Output is correct
5 Correct 142 ms 24384 KB Output is correct
6 Correct 157 ms 32312 KB Output is correct
7 Correct 165 ms 29512 KB Output is correct
8 Correct 128 ms 28140 KB Output is correct
9 Correct 161 ms 26904 KB Output is correct
10 Correct 119 ms 21504 KB Output is correct
11 Correct 140 ms 22964 KB Output is correct
12 Correct 134 ms 20608 KB Output is correct
13 Correct 124 ms 19852 KB Output is correct
14 Correct 114 ms 18360 KB Output is correct
15 Correct 105 ms 17608 KB Output is correct
16 Correct 63 ms 15176 KB Output is correct
17 Correct 87 ms 24860 KB Output is correct
18 Correct 88 ms 24964 KB Output is correct
19 Correct 92 ms 25040 KB Output is correct
20 Correct 95 ms 24888 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7508 KB Output is correct
2 Correct 7 ms 7476 KB Output is correct
3 Correct 5 ms 7508 KB Output is correct
4 Correct 5 ms 7508 KB Output is correct
5 Correct 5 ms 7508 KB Output is correct
6 Correct 5 ms 7508 KB Output is correct
7 Correct 5 ms 7380 KB Output is correct
8 Correct 4 ms 7508 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 5 ms 7476 KB Output is correct
11 Correct 5 ms 7508 KB Output is correct
12 Correct 5 ms 7508 KB Output is correct
13 Correct 5 ms 7508 KB Output is correct
14 Correct 5 ms 7508 KB Output is correct
15 Correct 5 ms 7508 KB Output is correct
16 Correct 4 ms 7508 KB Output is correct
17 Correct 5 ms 7508 KB Output is correct
18 Correct 5 ms 7380 KB Output is correct
19 Correct 5 ms 7380 KB Output is correct
20 Correct 5 ms 7380 KB Output is correct
21 Correct 6 ms 7508 KB Output is correct
22 Correct 5 ms 7508 KB Output is correct
23 Correct 4 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
# 결과 실행 시간 메모리 Grader output
1 Correct 111 ms 24360 KB Output is correct
2 Correct 119 ms 24304 KB Output is correct
3 Correct 105 ms 22620 KB Output is correct
4 Correct 97 ms 20704 KB Output is correct
5 Correct 108 ms 18824 KB Output is correct
6 Correct 102 ms 18044 KB Output is correct
7 Correct 97 ms 17536 KB Output is correct
8 Correct 74 ms 17072 KB Output is correct
9 Correct 83 ms 16904 KB Output is correct
10 Correct 73 ms 16712 KB Output is correct
11 Correct 88 ms 16560 KB Output is correct
12 Correct 76 ms 16672 KB Output is correct
13 Correct 76 ms 16844 KB Output is correct
14 Correct 82 ms 20704 KB Output is correct
15 Correct 146 ms 28652 KB Output is correct
16 Correct 139 ms 26632 KB Output is correct
17 Correct 119 ms 27200 KB Output is correct
18 Correct 112 ms 25332 KB Output is correct
19 Correct 115 ms 20208 KB Output is correct
20 Correct 104 ms 18600 KB Output is correct
21 Correct 97 ms 18416 KB Output is correct
22 Correct 96 ms 16716 KB Output is correct
23 Correct 94 ms 16316 KB Output is correct
24 Correct 113 ms 23044 KB Output is correct
25 Correct 95 ms 23088 KB Output is correct
26 Correct 90 ms 21832 KB Output is correct
27 Correct 104 ms 21848 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 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 5 ms 7364 KB Output is correct
6 Correct 4 ms 7384 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 5 ms 7272 KB Output is correct
9 Correct 5 ms 7352 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 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 7 ms 7380 KB Output is correct
16 Correct 5 ms 7380 KB Output is correct
17 Correct 6 ms 7380 KB Output is correct
18 Correct 4 ms 7384 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 6 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 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 7380 KB Output is correct
36 Correct 4 ms 7380 KB Output is correct
37 Correct 4 ms 7380 KB Output is correct
38 Correct 5 ms 7380 KB Output is correct
39 Correct 4 ms 7316 KB Output is correct
40 Correct 5 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 7380 KB Output is correct
44 Correct 4 ms 7380 KB Output is correct
45 Correct 5 ms 7380 KB Output is correct
46 Correct 4 ms 7380 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 7380 KB Output is correct
50 Correct 6 ms 7380 KB Output is correct
51 Correct 7 ms 7380 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7380 KB Output is correct
54 Correct 6 ms 7336 KB Output is correct
55 Correct 6 ms 7380 KB Output is correct
56 Correct 5 ms 7380 KB Output is correct
57 Correct 6 ms 7380 KB Output is correct
58 Correct 6 ms 7380 KB Output is correct
59 Correct 6 ms 7380 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 6 ms 7380 KB Output is correct
62 Correct 5 ms 7380 KB Output is correct
63 Correct 5 ms 7308 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
66 Correct 4 ms 7368 KB Output is correct
67 Correct 5 ms 7380 KB Output is correct
68 Correct 5 ms 7564 KB Output is correct
69 Correct 5 ms 7612 KB Output is correct
70 Correct 4 ms 7636 KB Output is correct
71 Correct 5 ms 7380 KB Output is correct
72 Correct 4 ms 7380 KB Output is correct
73 Correct 4 ms 7380 KB Output is correct
74 Correct 4 ms 7380 KB Output is correct
75 Correct 4 ms 7380 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 7508 KB Output is correct
79 Correct 5 ms 7380 KB Output is correct
80 Correct 5 ms 7496 KB Output is correct
81 Correct 4 ms 7508 KB Output is correct
82 Correct 4 ms 7508 KB Output is correct
83 Correct 5 ms 7508 KB Output is correct
84 Correct 6 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 5 ms 7380 KB Output is correct
88 Correct 5 ms 7380 KB Output is correct
89 Correct 5 ms 7380 KB Output is correct
90 Correct 5 ms 7380 KB Output is correct
91 Correct 5 ms 7516 KB Output is correct
92 Correct 5 ms 7508 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 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 5 ms 7364 KB Output is correct
6 Correct 4 ms 7384 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 5 ms 7272 KB Output is correct
9 Correct 5 ms 7352 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 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 7 ms 7380 KB Output is correct
16 Correct 5 ms 7380 KB Output is correct
17 Correct 6 ms 7380 KB Output is correct
18 Correct 4 ms 7384 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 5 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 6 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 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 7380 KB Output is correct
36 Correct 4 ms 7380 KB Output is correct
37 Correct 4 ms 7380 KB Output is correct
38 Correct 5 ms 7380 KB Output is correct
39 Correct 4 ms 7316 KB Output is correct
40 Correct 5 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 7380 KB Output is correct
44 Correct 4 ms 7380 KB Output is correct
45 Correct 5 ms 7380 KB Output is correct
46 Correct 4 ms 7380 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 7380 KB Output is correct
50 Correct 6 ms 7380 KB Output is correct
51 Correct 7 ms 7380 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7380 KB Output is correct
54 Correct 6 ms 7336 KB Output is correct
55 Correct 6 ms 7380 KB Output is correct
56 Correct 5 ms 7380 KB Output is correct
57 Correct 6 ms 7380 KB Output is correct
58 Correct 6 ms 7380 KB Output is correct
59 Correct 6 ms 7380 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 6 ms 7380 KB Output is correct
62 Correct 5 ms 7380 KB Output is correct
63 Correct 5 ms 7308 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
66 Correct 155 ms 35060 KB Output is correct
67 Correct 127 ms 35088 KB Output is correct
68 Correct 139 ms 27024 KB Output is correct
69 Correct 111 ms 31892 KB Output is correct
70 Correct 124 ms 23188 KB Output is correct
71 Correct 127 ms 24692 KB Output is correct
72 Correct 138 ms 21820 KB Output is correct
73 Correct 132 ms 23788 KB Output is correct
74 Correct 129 ms 19380 KB Output is correct
75 Correct 129 ms 20524 KB Output is correct
76 Correct 109 ms 16652 KB Output is correct
77 Correct 116 ms 16488 KB Output is correct
78 Correct 86 ms 16336 KB Output is correct
79 Correct 86 ms 16044 KB Output is correct
80 Correct 69 ms 15196 KB Output is correct
81 Correct 78 ms 14992 KB Output is correct
82 Correct 6 ms 8532 KB Output is correct
83 Correct 7 ms 8480 KB Output is correct
84 Correct 6 ms 8532 KB Output is correct
85 Correct 7 ms 8448 KB Output is correct
86 Correct 6 ms 8472 KB Output is correct
87 Correct 7 ms 8404 KB Output is correct
88 Correct 5 ms 7548 KB Output is correct
89 Correct 5 ms 7508 KB Output is correct
90 Correct 6 ms 7556 KB Output is correct
91 Correct 5 ms 7636 KB Output is correct
92 Correct 5 ms 7636 KB Output is correct
93 Correct 6 ms 7508 KB Output is correct
94 Correct 5 ms 7556 KB Output is correct
95 Correct 5 ms 7508 KB Output is correct
96 Correct 7 ms 7508 KB Output is correct
97 Correct 7 ms 7508 KB Output is correct
98 Correct 7 ms 7508 KB Output is correct
99 Correct 5 ms 7516 KB Output is correct
100 Correct 9 ms 7508 KB Output is correct
101 Correct 6 ms 7380 KB Output is correct
102 Correct 6 ms 7380 KB Output is correct
103 Correct 6 ms 7468 KB Output is correct
104 Correct 6 ms 7508 KB Output is correct
105 Correct 4 ms 7508 KB Output is correct
106 Correct 7 ms 7508 KB Output is correct
107 Correct 5 ms 7508 KB Output is correct
108 Correct 121 ms 24416 KB Output is correct
109 Correct 138 ms 24372 KB Output is correct
110 Correct 131 ms 24324 KB Output is correct
111 Correct 127 ms 24308 KB Output is correct
112 Correct 142 ms 24384 KB Output is correct
113 Correct 157 ms 32312 KB Output is correct
114 Correct 165 ms 29512 KB Output is correct
115 Correct 128 ms 28140 KB Output is correct
116 Correct 161 ms 26904 KB Output is correct
117 Correct 119 ms 21504 KB Output is correct
118 Correct 140 ms 22964 KB Output is correct
119 Correct 134 ms 20608 KB Output is correct
120 Correct 124 ms 19852 KB Output is correct
121 Correct 114 ms 18360 KB Output is correct
122 Correct 105 ms 17608 KB Output is correct
123 Correct 63 ms 15176 KB Output is correct
124 Correct 87 ms 24860 KB Output is correct
125 Correct 88 ms 24964 KB Output is correct
126 Correct 92 ms 25040 KB Output is correct
127 Correct 95 ms 24888 KB Output is correct
128 Correct 5 ms 7508 KB Output is correct
129 Correct 7 ms 7476 KB Output is correct
130 Correct 5 ms 7508 KB Output is correct
131 Correct 5 ms 7508 KB Output is correct
132 Correct 5 ms 7508 KB Output is correct
133 Correct 5 ms 7508 KB Output is correct
134 Correct 5 ms 7380 KB Output is correct
135 Correct 4 ms 7508 KB Output is correct
136 Correct 4 ms 7380 KB Output is correct
137 Correct 5 ms 7476 KB Output is correct
138 Correct 5 ms 7508 KB Output is correct
139 Correct 5 ms 7508 KB Output is correct
140 Correct 5 ms 7508 KB Output is correct
141 Correct 5 ms 7508 KB Output is correct
142 Correct 5 ms 7508 KB Output is correct
143 Correct 4 ms 7508 KB Output is correct
144 Correct 5 ms 7508 KB Output is correct
145 Correct 5 ms 7380 KB Output is correct
146 Correct 5 ms 7380 KB Output is correct
147 Correct 5 ms 7380 KB Output is correct
148 Correct 6 ms 7508 KB Output is correct
149 Correct 5 ms 7508 KB Output is correct
150 Correct 4 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 111 ms 24360 KB Output is correct
156 Correct 119 ms 24304 KB Output is correct
157 Correct 105 ms 22620 KB Output is correct
158 Correct 97 ms 20704 KB Output is correct
159 Correct 108 ms 18824 KB Output is correct
160 Correct 102 ms 18044 KB Output is correct
161 Correct 97 ms 17536 KB Output is correct
162 Correct 74 ms 17072 KB Output is correct
163 Correct 83 ms 16904 KB Output is correct
164 Correct 73 ms 16712 KB Output is correct
165 Correct 88 ms 16560 KB Output is correct
166 Correct 76 ms 16672 KB Output is correct
167 Correct 76 ms 16844 KB Output is correct
168 Correct 82 ms 20704 KB Output is correct
169 Correct 146 ms 28652 KB Output is correct
170 Correct 139 ms 26632 KB Output is correct
171 Correct 119 ms 27200 KB Output is correct
172 Correct 112 ms 25332 KB Output is correct
173 Correct 115 ms 20208 KB Output is correct
174 Correct 104 ms 18600 KB Output is correct
175 Correct 97 ms 18416 KB Output is correct
176 Correct 96 ms 16716 KB Output is correct
177 Correct 94 ms 16316 KB Output is correct
178 Correct 113 ms 23044 KB Output is correct
179 Correct 95 ms 23088 KB Output is correct
180 Correct 90 ms 21832 KB Output is correct
181 Correct 104 ms 21848 KB Output is correct
182 Correct 4 ms 7368 KB Output is correct
183 Correct 5 ms 7380 KB Output is correct
184 Correct 5 ms 7564 KB Output is correct
185 Correct 5 ms 7612 KB Output is correct
186 Correct 4 ms 7636 KB Output is correct
187 Correct 5 ms 7380 KB Output is correct
188 Correct 4 ms 7380 KB Output is correct
189 Correct 4 ms 7380 KB Output is correct
190 Correct 4 ms 7380 KB Output is correct
191 Correct 4 ms 7380 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 7508 KB Output is correct
195 Correct 5 ms 7380 KB Output is correct
196 Correct 5 ms 7496 KB Output is correct
197 Correct 4 ms 7508 KB Output is correct
198 Correct 4 ms 7508 KB Output is correct
199 Correct 5 ms 7508 KB Output is correct
200 Correct 6 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 5 ms 7380 KB Output is correct
204 Correct 5 ms 7380 KB Output is correct
205 Correct 5 ms 7380 KB Output is correct
206 Correct 5 ms 7380 KB Output is correct
207 Correct 5 ms 7516 KB Output is correct
208 Correct 5 ms 7508 KB Output is correct
209 Correct 6 ms 8148 KB Output is correct
210 Correct 60 ms 14540 KB Output is correct
211 Correct 119 ms 23960 KB Output is correct
212 Correct 169 ms 28944 KB Output is correct
213 Correct 156 ms 32112 KB Output is correct
214 Correct 61 ms 16084 KB Output is correct
215 Correct 58 ms 15744 KB Output is correct
216 Correct 107 ms 21524 KB Output is correct
217 Correct 96 ms 19268 KB Output is correct
218 Correct 93 ms 17116 KB Output is correct
219 Correct 86 ms 16584 KB Output is correct
220 Correct 71 ms 16460 KB Output is correct
221 Correct 70 ms 16496 KB Output is correct
222 Correct 76 ms 18648 KB Output is correct
223 Correct 105 ms 23096 KB Output is correct
224 Correct 117 ms 21868 KB Output is correct
225 Correct 95 ms 17884 KB Output is correct
226 Correct 92 ms 17372 KB Output is correct
227 Correct 103 ms 16840 KB Output is correct
228 Correct 102 ms 16076 KB Output is correct
229 Correct 78 ms 15872 KB Output is correct
230 Correct 94 ms 19416 KB Output is correct
231 Correct 90 ms 19420 KB Output is correct