Submission #548980

# Submission time Handle Problem Language Result Execution time Memory
548980 2022-04-14T21:22:32 Z leaked Duathlon (APIO18_duathlon) C++17
100 / 100
277 ms 42176 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=2e5+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[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

*/
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14420 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 9 ms 14372 KB Output is correct
4 Correct 8 ms 14420 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14420 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 8 ms 14420 KB Output is correct
10 Correct 9 ms 14344 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 8 ms 14368 KB Output is correct
13 Correct 10 ms 14436 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 7 ms 14440 KB Output is correct
19 Correct 9 ms 14400 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14424 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 10 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14428 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14408 KB Output is correct
33 Correct 8 ms 14376 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 8 ms 14364 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14420 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 9 ms 14372 KB Output is correct
4 Correct 8 ms 14420 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14420 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 8 ms 14420 KB Output is correct
10 Correct 9 ms 14344 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 8 ms 14368 KB Output is correct
13 Correct 10 ms 14436 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 7 ms 14440 KB Output is correct
19 Correct 9 ms 14400 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14424 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 10 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14428 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14408 KB Output is correct
33 Correct 8 ms 14376 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 8 ms 14364 KB Output is correct
36 Correct 8 ms 14424 KB Output is correct
37 Correct 11 ms 14420 KB Output is correct
38 Correct 8 ms 14420 KB Output is correct
39 Correct 9 ms 14380 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14420 KB Output is correct
42 Correct 9 ms 14332 KB Output is correct
43 Correct 8 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 7 ms 14420 KB Output is correct
46 Correct 8 ms 14328 KB Output is correct
47 Correct 8 ms 14420 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14380 KB Output is correct
50 Correct 8 ms 14548 KB Output is correct
51 Correct 8 ms 14420 KB Output is correct
52 Correct 9 ms 14452 KB Output is correct
53 Correct 8 ms 14320 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 9 ms 14452 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 7 ms 14420 KB Output is correct
60 Correct 8 ms 14396 KB Output is correct
61 Correct 9 ms 14420 KB Output is correct
62 Correct 9 ms 14420 KB Output is correct
63 Correct 8 ms 14420 KB Output is correct
64 Correct 9 ms 14444 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 117 ms 42172 KB Output is correct
2 Correct 120 ms 42176 KB Output is correct
3 Correct 108 ms 34128 KB Output is correct
4 Correct 107 ms 40204 KB Output is correct
5 Correct 117 ms 31468 KB Output is correct
6 Correct 105 ms 33052 KB Output is correct
7 Correct 100 ms 30108 KB Output is correct
8 Correct 114 ms 32168 KB Output is correct
9 Correct 100 ms 27656 KB Output is correct
10 Correct 107 ms 28948 KB Output is correct
11 Correct 91 ms 24840 KB Output is correct
12 Correct 85 ms 24524 KB Output is correct
13 Correct 73 ms 24404 KB Output is correct
14 Correct 78 ms 24028 KB Output is correct
15 Correct 71 ms 22984 KB Output is correct
16 Correct 63 ms 22632 KB Output is correct
17 Correct 10 ms 15532 KB Output is correct
18 Correct 10 ms 15588 KB Output is correct
19 Correct 10 ms 15572 KB Output is correct
20 Correct 9 ms 15512 KB Output is correct
21 Correct 10 ms 15572 KB Output is correct
22 Correct 11 ms 15464 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14548 KB Output is correct
2 Correct 7 ms 14548 KB Output is correct
3 Correct 9 ms 14548 KB Output is correct
4 Correct 9 ms 14716 KB Output is correct
5 Correct 9 ms 14608 KB Output is correct
6 Correct 9 ms 14672 KB Output is correct
7 Correct 9 ms 14676 KB Output is correct
8 Correct 9 ms 14628 KB Output is correct
9 Correct 9 ms 14548 KB Output is correct
10 Correct 8 ms 14548 KB Output is correct
11 Correct 8 ms 14524 KB Output is correct
12 Correct 8 ms 14548 KB Output is correct
13 Correct 8 ms 14544 KB Output is correct
14 Correct 9 ms 14548 KB Output is correct
15 Correct 9 ms 14460 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 9 ms 14548 KB Output is correct
18 Correct 9 ms 14532 KB Output is correct
19 Correct 9 ms 14560 KB Output is correct
20 Correct 9 ms 14548 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 102 ms 31360 KB Output is correct
2 Correct 108 ms 32624 KB Output is correct
3 Correct 119 ms 32652 KB Output is correct
4 Correct 117 ms 32672 KB Output is correct
5 Correct 111 ms 32628 KB Output is correct
6 Correct 126 ms 40716 KB Output is correct
7 Correct 128 ms 37880 KB Output is correct
8 Correct 112 ms 36488 KB Output is correct
9 Correct 112 ms 35172 KB Output is correct
10 Correct 128 ms 29992 KB Output is correct
11 Correct 129 ms 31304 KB Output is correct
12 Correct 132 ms 28844 KB Output is correct
13 Correct 118 ms 28148 KB Output is correct
14 Correct 112 ms 26444 KB Output is correct
15 Correct 101 ms 25728 KB Output is correct
16 Correct 58 ms 22816 KB Output is correct
17 Correct 102 ms 33276 KB Output is correct
18 Correct 93 ms 33296 KB Output is correct
19 Correct 103 ms 33320 KB Output is correct
20 Correct 93 ms 33256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14548 KB Output is correct
2 Correct 8 ms 14548 KB Output is correct
3 Correct 8 ms 14548 KB Output is correct
4 Correct 12 ms 14584 KB Output is correct
5 Correct 8 ms 14548 KB Output is correct
6 Correct 8 ms 14548 KB Output is correct
7 Correct 8 ms 14548 KB Output is correct
8 Correct 10 ms 14548 KB Output is correct
9 Correct 8 ms 14452 KB Output is correct
10 Correct 9 ms 14548 KB Output is correct
11 Correct 8 ms 14492 KB Output is correct
12 Correct 11 ms 14676 KB Output is correct
13 Correct 8 ms 14548 KB Output is correct
14 Correct 9 ms 14548 KB Output is correct
15 Correct 8 ms 14548 KB Output is correct
16 Correct 9 ms 14548 KB Output is correct
17 Correct 9 ms 14436 KB Output is correct
18 Correct 10 ms 14556 KB Output is correct
19 Correct 12 ms 14420 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14608 KB Output is correct
22 Correct 8 ms 14548 KB Output is correct
23 Correct 8 ms 14504 KB Output is correct
24 Correct 9 ms 14548 KB Output is correct
25 Correct 8 ms 14476 KB Output is correct
26 Correct 9 ms 14420 KB Output is correct
27 Correct 8 ms 14408 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 135 ms 31376 KB Output is correct
2 Correct 147 ms 32564 KB Output is correct
3 Correct 155 ms 31144 KB Output is correct
4 Correct 150 ms 29252 KB Output is correct
5 Correct 143 ms 27252 KB Output is correct
6 Correct 134 ms 26400 KB Output is correct
7 Correct 120 ms 25928 KB Output is correct
8 Correct 120 ms 25432 KB Output is correct
9 Correct 129 ms 25300 KB Output is correct
10 Correct 118 ms 25124 KB Output is correct
11 Correct 111 ms 24856 KB Output is correct
12 Correct 91 ms 25092 KB Output is correct
13 Correct 115 ms 25192 KB Output is correct
14 Correct 113 ms 28920 KB Output is correct
15 Correct 163 ms 37188 KB Output is correct
16 Correct 164 ms 35212 KB Output is correct
17 Correct 165 ms 35828 KB Output is correct
18 Correct 166 ms 33928 KB Output is correct
19 Correct 162 ms 28764 KB Output is correct
20 Correct 150 ms 27160 KB Output is correct
21 Correct 146 ms 26956 KB Output is correct
22 Correct 124 ms 25232 KB Output is correct
23 Correct 118 ms 24564 KB Output is correct
24 Correct 149 ms 31480 KB Output is correct
25 Correct 140 ms 31552 KB Output is correct
26 Correct 139 ms 30356 KB Output is correct
27 Correct 141 ms 30512 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14420 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 9 ms 14372 KB Output is correct
4 Correct 8 ms 14420 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14420 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 8 ms 14420 KB Output is correct
10 Correct 9 ms 14344 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 8 ms 14368 KB Output is correct
13 Correct 10 ms 14436 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 7 ms 14440 KB Output is correct
19 Correct 9 ms 14400 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14424 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 10 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14428 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14408 KB Output is correct
33 Correct 8 ms 14376 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 8 ms 14364 KB Output is correct
36 Correct 8 ms 14424 KB Output is correct
37 Correct 11 ms 14420 KB Output is correct
38 Correct 8 ms 14420 KB Output is correct
39 Correct 9 ms 14380 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14420 KB Output is correct
42 Correct 9 ms 14332 KB Output is correct
43 Correct 8 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 7 ms 14420 KB Output is correct
46 Correct 8 ms 14328 KB Output is correct
47 Correct 8 ms 14420 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14380 KB Output is correct
50 Correct 8 ms 14548 KB Output is correct
51 Correct 8 ms 14420 KB Output is correct
52 Correct 9 ms 14452 KB Output is correct
53 Correct 8 ms 14320 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 9 ms 14452 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 7 ms 14420 KB Output is correct
60 Correct 8 ms 14396 KB Output is correct
61 Correct 9 ms 14420 KB Output is correct
62 Correct 9 ms 14420 KB Output is correct
63 Correct 8 ms 14420 KB Output is correct
64 Correct 9 ms 14444 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
66 Correct 10 ms 14420 KB Output is correct
67 Correct 9 ms 14420 KB Output is correct
68 Correct 9 ms 14548 KB Output is correct
69 Correct 11 ms 14548 KB Output is correct
70 Correct 9 ms 14676 KB Output is correct
71 Correct 8 ms 14420 KB Output is correct
72 Correct 10 ms 14460 KB Output is correct
73 Correct 10 ms 14420 KB Output is correct
74 Correct 11 ms 14420 KB Output is correct
75 Correct 9 ms 14420 KB Output is correct
76 Correct 8 ms 14340 KB Output is correct
77 Correct 9 ms 14548 KB Output is correct
78 Correct 9 ms 14516 KB Output is correct
79 Correct 8 ms 14548 KB Output is correct
80 Correct 10 ms 14504 KB Output is correct
81 Correct 9 ms 14548 KB Output is correct
82 Correct 9 ms 14548 KB Output is correct
83 Correct 8 ms 14676 KB Output is correct
84 Correct 11 ms 14548 KB Output is correct
85 Correct 10 ms 14528 KB Output is correct
86 Correct 10 ms 14548 KB Output is correct
87 Correct 10 ms 14532 KB Output is correct
88 Correct 10 ms 14420 KB Output is correct
89 Correct 10 ms 14464 KB Output is correct
90 Correct 8 ms 14420 KB Output is correct
91 Correct 10 ms 14548 KB Output is correct
92 Correct 9 ms 14548 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14420 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 9 ms 14372 KB Output is correct
4 Correct 8 ms 14420 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14420 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 8 ms 14420 KB Output is correct
10 Correct 9 ms 14344 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 8 ms 14368 KB Output is correct
13 Correct 10 ms 14436 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 7 ms 14440 KB Output is correct
19 Correct 9 ms 14400 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14424 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 10 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14428 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14408 KB Output is correct
33 Correct 8 ms 14376 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 8 ms 14364 KB Output is correct
36 Correct 8 ms 14424 KB Output is correct
37 Correct 11 ms 14420 KB Output is correct
38 Correct 8 ms 14420 KB Output is correct
39 Correct 9 ms 14380 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14420 KB Output is correct
42 Correct 9 ms 14332 KB Output is correct
43 Correct 8 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 7 ms 14420 KB Output is correct
46 Correct 8 ms 14328 KB Output is correct
47 Correct 8 ms 14420 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14380 KB Output is correct
50 Correct 8 ms 14548 KB Output is correct
51 Correct 8 ms 14420 KB Output is correct
52 Correct 9 ms 14452 KB Output is correct
53 Correct 8 ms 14320 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 9 ms 14452 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 7 ms 14420 KB Output is correct
60 Correct 8 ms 14396 KB Output is correct
61 Correct 9 ms 14420 KB Output is correct
62 Correct 9 ms 14420 KB Output is correct
63 Correct 8 ms 14420 KB Output is correct
64 Correct 9 ms 14444 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
66 Correct 117 ms 42172 KB Output is correct
67 Correct 120 ms 42176 KB Output is correct
68 Correct 108 ms 34128 KB Output is correct
69 Correct 107 ms 40204 KB Output is correct
70 Correct 117 ms 31468 KB Output is correct
71 Correct 105 ms 33052 KB Output is correct
72 Correct 100 ms 30108 KB Output is correct
73 Correct 114 ms 32168 KB Output is correct
74 Correct 100 ms 27656 KB Output is correct
75 Correct 107 ms 28948 KB Output is correct
76 Correct 91 ms 24840 KB Output is correct
77 Correct 85 ms 24524 KB Output is correct
78 Correct 73 ms 24404 KB Output is correct
79 Correct 78 ms 24028 KB Output is correct
80 Correct 71 ms 22984 KB Output is correct
81 Correct 63 ms 22632 KB Output is correct
82 Correct 10 ms 15532 KB Output is correct
83 Correct 10 ms 15588 KB Output is correct
84 Correct 10 ms 15572 KB Output is correct
85 Correct 9 ms 15512 KB Output is correct
86 Correct 10 ms 15572 KB Output is correct
87 Correct 11 ms 15464 KB Output is correct
88 Correct 8 ms 14548 KB Output is correct
89 Correct 7 ms 14548 KB Output is correct
90 Correct 9 ms 14548 KB Output is correct
91 Correct 9 ms 14716 KB Output is correct
92 Correct 9 ms 14608 KB Output is correct
93 Correct 9 ms 14672 KB Output is correct
94 Correct 9 ms 14676 KB Output is correct
95 Correct 9 ms 14628 KB Output is correct
96 Correct 9 ms 14548 KB Output is correct
97 Correct 8 ms 14548 KB Output is correct
98 Correct 8 ms 14524 KB Output is correct
99 Correct 8 ms 14548 KB Output is correct
100 Correct 8 ms 14544 KB Output is correct
101 Correct 9 ms 14548 KB Output is correct
102 Correct 9 ms 14460 KB Output is correct
103 Correct 8 ms 14420 KB Output is correct
104 Correct 9 ms 14548 KB Output is correct
105 Correct 9 ms 14532 KB Output is correct
106 Correct 9 ms 14560 KB Output is correct
107 Correct 9 ms 14548 KB Output is correct
108 Correct 102 ms 31360 KB Output is correct
109 Correct 108 ms 32624 KB Output is correct
110 Correct 119 ms 32652 KB Output is correct
111 Correct 117 ms 32672 KB Output is correct
112 Correct 111 ms 32628 KB Output is correct
113 Correct 126 ms 40716 KB Output is correct
114 Correct 128 ms 37880 KB Output is correct
115 Correct 112 ms 36488 KB Output is correct
116 Correct 112 ms 35172 KB Output is correct
117 Correct 128 ms 29992 KB Output is correct
118 Correct 129 ms 31304 KB Output is correct
119 Correct 132 ms 28844 KB Output is correct
120 Correct 118 ms 28148 KB Output is correct
121 Correct 112 ms 26444 KB Output is correct
122 Correct 101 ms 25728 KB Output is correct
123 Correct 58 ms 22816 KB Output is correct
124 Correct 102 ms 33276 KB Output is correct
125 Correct 93 ms 33296 KB Output is correct
126 Correct 103 ms 33320 KB Output is correct
127 Correct 93 ms 33256 KB Output is correct
128 Correct 8 ms 14548 KB Output is correct
129 Correct 8 ms 14548 KB Output is correct
130 Correct 8 ms 14548 KB Output is correct
131 Correct 12 ms 14584 KB Output is correct
132 Correct 8 ms 14548 KB Output is correct
133 Correct 8 ms 14548 KB Output is correct
134 Correct 8 ms 14548 KB Output is correct
135 Correct 10 ms 14548 KB Output is correct
136 Correct 8 ms 14452 KB Output is correct
137 Correct 9 ms 14548 KB Output is correct
138 Correct 8 ms 14492 KB Output is correct
139 Correct 11 ms 14676 KB Output is correct
140 Correct 8 ms 14548 KB Output is correct
141 Correct 9 ms 14548 KB Output is correct
142 Correct 8 ms 14548 KB Output is correct
143 Correct 9 ms 14548 KB Output is correct
144 Correct 9 ms 14436 KB Output is correct
145 Correct 10 ms 14556 KB Output is correct
146 Correct 12 ms 14420 KB Output is correct
147 Correct 8 ms 14420 KB Output is correct
148 Correct 8 ms 14608 KB Output is correct
149 Correct 8 ms 14548 KB Output is correct
150 Correct 8 ms 14504 KB Output is correct
151 Correct 9 ms 14548 KB Output is correct
152 Correct 8 ms 14476 KB Output is correct
153 Correct 9 ms 14420 KB Output is correct
154 Correct 8 ms 14408 KB Output is correct
155 Correct 135 ms 31376 KB Output is correct
156 Correct 147 ms 32564 KB Output is correct
157 Correct 155 ms 31144 KB Output is correct
158 Correct 150 ms 29252 KB Output is correct
159 Correct 143 ms 27252 KB Output is correct
160 Correct 134 ms 26400 KB Output is correct
161 Correct 120 ms 25928 KB Output is correct
162 Correct 120 ms 25432 KB Output is correct
163 Correct 129 ms 25300 KB Output is correct
164 Correct 118 ms 25124 KB Output is correct
165 Correct 111 ms 24856 KB Output is correct
166 Correct 91 ms 25092 KB Output is correct
167 Correct 115 ms 25192 KB Output is correct
168 Correct 113 ms 28920 KB Output is correct
169 Correct 163 ms 37188 KB Output is correct
170 Correct 164 ms 35212 KB Output is correct
171 Correct 165 ms 35828 KB Output is correct
172 Correct 166 ms 33928 KB Output is correct
173 Correct 162 ms 28764 KB Output is correct
174 Correct 150 ms 27160 KB Output is correct
175 Correct 146 ms 26956 KB Output is correct
176 Correct 124 ms 25232 KB Output is correct
177 Correct 118 ms 24564 KB Output is correct
178 Correct 149 ms 31480 KB Output is correct
179 Correct 140 ms 31552 KB Output is correct
180 Correct 139 ms 30356 KB Output is correct
181 Correct 141 ms 30512 KB Output is correct
182 Correct 10 ms 14420 KB Output is correct
183 Correct 9 ms 14420 KB Output is correct
184 Correct 9 ms 14548 KB Output is correct
185 Correct 11 ms 14548 KB Output is correct
186 Correct 9 ms 14676 KB Output is correct
187 Correct 8 ms 14420 KB Output is correct
188 Correct 10 ms 14460 KB Output is correct
189 Correct 10 ms 14420 KB Output is correct
190 Correct 11 ms 14420 KB Output is correct
191 Correct 9 ms 14420 KB Output is correct
192 Correct 8 ms 14340 KB Output is correct
193 Correct 9 ms 14548 KB Output is correct
194 Correct 9 ms 14516 KB Output is correct
195 Correct 8 ms 14548 KB Output is correct
196 Correct 10 ms 14504 KB Output is correct
197 Correct 9 ms 14548 KB Output is correct
198 Correct 9 ms 14548 KB Output is correct
199 Correct 8 ms 14676 KB Output is correct
200 Correct 11 ms 14548 KB Output is correct
201 Correct 10 ms 14528 KB Output is correct
202 Correct 10 ms 14548 KB Output is correct
203 Correct 10 ms 14532 KB Output is correct
204 Correct 10 ms 14420 KB Output is correct
205 Correct 10 ms 14464 KB Output is correct
206 Correct 8 ms 14420 KB Output is correct
207 Correct 10 ms 14548 KB Output is correct
208 Correct 9 ms 14548 KB Output is correct
209 Correct 12 ms 15184 KB Output is correct
210 Correct 74 ms 22268 KB Output is correct
211 Correct 145 ms 32216 KB Output is correct
212 Correct 193 ms 37920 KB Output is correct
213 Correct 277 ms 41608 KB Output is correct
214 Correct 82 ms 24700 KB Output is correct
215 Correct 80 ms 24532 KB Output is correct
216 Correct 142 ms 30224 KB Output is correct
217 Correct 127 ms 27860 KB Output is correct
218 Correct 125 ms 25564 KB Output is correct
219 Correct 98 ms 24948 KB Output is correct
220 Correct 119 ms 24860 KB Output is correct
221 Correct 100 ms 24976 KB Output is correct
222 Correct 111 ms 27068 KB Output is correct
223 Correct 142 ms 31840 KB Output is correct
224 Correct 123 ms 30628 KB Output is correct
225 Correct 150 ms 26612 KB Output is correct
226 Correct 123 ms 26084 KB Output is correct
227 Correct 133 ms 25600 KB Output is correct
228 Correct 128 ms 24732 KB Output is correct
229 Correct 97 ms 24260 KB Output is correct
230 Correct 136 ms 28060 KB Output is correct
231 Correct 138 ms 28220 KB Output is correct