Submission #739569

# Submission time Handle Problem Language Result Execution time Memory
739569 2023-05-10T16:30:40 Z bachhoangxuan Duathlon (APIO18_duathlon) C++17
100 / 100
124 ms 32072 KB
// Judges with GCC >= 12 only needs Ofast
// #pragma GCC optimize("O3,no-stack-protector,fast-math,unroll-loops,tree-vectorize")
// MLE optimization
// #pragma GCC optimize("conserve-stack")
// Old judges
// #pragma GCC target("sse4.2,popcnt,lzcnt,abm,mmx,fma,bmi,bmi2")
// New judges. Test with assert(__builtin_cpu_supports("avx2"));
// #pragma GCC target("avx2,popcnt,lzcnt,abm,bmi,bmi2,fma,tune=native")
// Atcoder
// #pragma GCC target("avx2,popcnt,lzcnt,abm,bmi,bmi2,fma")
/*
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
- insert(x)
- find_by_order(k): return iterator to the k-th smallest element
- order_of_key(x): the number of elements that are strictly smaller
*/
#include<bits/stdc++.h>
using namespace std;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
uniform_real_distribution<> pp(0.0,1.0);
#define int long long
#define ld long double
#define pii pair<int,int>
#define piii pair<int,pii>
#define fi first
#define se second
const int inf=1e18;
const int mod=1e9+7;
const int maxn=200005;
int power(int a,int n){
    int res=1;
    while(n){
        if(n&1) res=res*a%mod;
        a=a*a%mod;n>>=1;
    }
    return res;
}
int n,m,sz,pos,num[maxn],low[maxn];
vector<int> edge[maxn],adj[maxn],st;
int cnt[maxn],sum[maxn],cur,ans;
void add_edge(int u,int v){
    adj[u].push_back(v);
    adj[v].push_back(u);
    //cout << u << ' ' << v << '\n';
}
void dfs(int u,int par){
    low[u]=num[u]=++pos;
    st.push_back(u);
    for(int v:edge[u]){
        if(v==par) continue;
        if(!num[v]){
            dfs(v,u);
            low[u]=min(low[u],low[v]);
            if(low[v]>=num[u]){
                sz++;
                while(st.back()!=v){
                    add_edge(st.back(),sz);
                    st.pop_back();
                }
                add_edge(v,sz);st.pop_back();
                add_edge(u,sz);
            }
        }
        else low[u]=min(low[u],num[v]);
    }
}
bool vis[maxn];
void dfs_sz(int u,int par){
    cur+=cnt[u];
    for(int v:adj[u]){
        if(v==par) continue;
        dfs_sz(v,u);
    }
}
void dfs_cal(int u,int par){
    vis[u]=true;sum[u]=cnt[u];
    int mul=(u<=n?1:(int)adj[u].size()-2),total=(cur-cnt[u])*(cur-cnt[u]);
    for(int v:adj[u]){
        if(v==par) continue;
        dfs_cal(v,u);sum[u]+=sum[v];
        total-=sum[v]*sum[v];
    }
    total-=(cur-sum[u])*(cur-sum[u]);
    ans+=mul*total;
    //cout << u << ' ' << sum[u] << '\n';
    //if(u>n){cout << u << ' ' << mul+2 << ' ' << total << '\n';}
}
void solve(){
    cin >> n >> m;sz=n;
    for(int i=1;i<=m;i++){
        int u,v;cin >> u >> v;
        edge[u].push_back(v);
        edge[v].push_back(u);
    }
    for(int i=1;i<=n;i++){
        cnt[i]=1;
        if(!num[i]){
            dfs(i,0);sz++;
            while(!st.empty()){add_edge(st.back(),sz);st.pop_back();}
        }
    }
    for(int i=1;i<=sz;i++){
        if(!vis[i]){
            cur=0;
            dfs_sz(i,0);
            //cout << cur << '\n';
            dfs_cal(i,0);
        }
    }
    cout << ans << '\n';
}
signed main(){
    //freopen("test_input.txt","r",stdin);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    int test=1;//cin >> test;
    while(test--) solve();
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 7 ms 9684 KB Output is correct
4 Correct 6 ms 9684 KB Output is correct
5 Correct 6 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 6 ms 9724 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 6 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 6 ms 9736 KB Output is correct
12 Correct 5 ms 9684 KB Output is correct
13 Correct 5 ms 9684 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9684 KB Output is correct
16 Correct 6 ms 9684 KB Output is correct
17 Correct 7 ms 9684 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 7 ms 9748 KB Output is correct
20 Correct 7 ms 9812 KB Output is correct
21 Correct 6 ms 9684 KB Output is correct
22 Correct 7 ms 9728 KB Output is correct
23 Correct 6 ms 9736 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9732 KB Output is correct
26 Correct 6 ms 9756 KB Output is correct
27 Correct 6 ms 9740 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 6 ms 9672 KB Output is correct
30 Correct 6 ms 9740 KB Output is correct
31 Correct 6 ms 9628 KB Output is correct
32 Correct 7 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 8 ms 9720 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 7 ms 9684 KB Output is correct
4 Correct 6 ms 9684 KB Output is correct
5 Correct 6 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 6 ms 9724 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 6 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 6 ms 9736 KB Output is correct
12 Correct 5 ms 9684 KB Output is correct
13 Correct 5 ms 9684 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9684 KB Output is correct
16 Correct 6 ms 9684 KB Output is correct
17 Correct 7 ms 9684 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 7 ms 9748 KB Output is correct
20 Correct 7 ms 9812 KB Output is correct
21 Correct 6 ms 9684 KB Output is correct
22 Correct 7 ms 9728 KB Output is correct
23 Correct 6 ms 9736 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9732 KB Output is correct
26 Correct 6 ms 9756 KB Output is correct
27 Correct 6 ms 9740 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 6 ms 9672 KB Output is correct
30 Correct 6 ms 9740 KB Output is correct
31 Correct 6 ms 9628 KB Output is correct
32 Correct 7 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 8 ms 9720 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 6 ms 9732 KB Output is correct
39 Correct 6 ms 9812 KB Output is correct
40 Correct 6 ms 9732 KB Output is correct
41 Correct 6 ms 9684 KB Output is correct
42 Correct 6 ms 9684 KB Output is correct
43 Correct 6 ms 9684 KB Output is correct
44 Correct 6 ms 9684 KB Output is correct
45 Correct 6 ms 9684 KB Output is correct
46 Correct 7 ms 9684 KB Output is correct
47 Correct 6 ms 9684 KB Output is correct
48 Correct 6 ms 9684 KB Output is correct
49 Correct 6 ms 9684 KB Output is correct
50 Correct 6 ms 9732 KB Output is correct
51 Correct 5 ms 9732 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 6 ms 9748 KB Output is correct
54 Correct 5 ms 9732 KB Output is correct
55 Correct 5 ms 9644 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9748 KB Output is correct
58 Correct 6 ms 9660 KB Output is correct
59 Correct 5 ms 9740 KB Output is correct
60 Correct 6 ms 9716 KB Output is correct
61 Correct 5 ms 9740 KB Output is correct
62 Correct 7 ms 9736 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9740 KB Output is correct
65 Correct 6 ms 9684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 75 ms 28504 KB Output is correct
2 Correct 69 ms 28596 KB Output is correct
3 Correct 91 ms 28392 KB Output is correct
4 Correct 75 ms 28704 KB Output is correct
5 Correct 87 ms 26736 KB Output is correct
6 Correct 109 ms 28428 KB Output is correct
7 Correct 80 ms 26300 KB Output is correct
8 Correct 90 ms 26828 KB Output is correct
9 Correct 90 ms 24760 KB Output is correct
10 Correct 83 ms 25124 KB Output is correct
11 Correct 94 ms 23628 KB Output is correct
12 Correct 90 ms 23440 KB Output is correct
13 Correct 63 ms 23516 KB Output is correct
14 Correct 71 ms 23392 KB Output is correct
15 Correct 64 ms 23056 KB Output is correct
16 Correct 54 ms 22936 KB Output is correct
17 Correct 19 ms 20104 KB Output is correct
18 Correct 19 ms 20044 KB Output is correct
19 Correct 24 ms 20096 KB Output is correct
20 Correct 25 ms 20052 KB Output is correct
21 Correct 23 ms 20104 KB Output is correct
22 Correct 22 ms 20044 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9876 KB Output is correct
2 Correct 5 ms 9796 KB Output is correct
3 Correct 5 ms 9812 KB Output is correct
4 Correct 5 ms 9940 KB Output is correct
5 Correct 5 ms 9940 KB Output is correct
6 Correct 6 ms 9940 KB Output is correct
7 Correct 7 ms 9940 KB Output is correct
8 Correct 7 ms 9872 KB Output is correct
9 Correct 8 ms 9812 KB Output is correct
10 Correct 7 ms 9812 KB Output is correct
11 Correct 6 ms 9868 KB Output is correct
12 Correct 6 ms 9872 KB Output is correct
13 Correct 5 ms 9812 KB Output is correct
14 Correct 6 ms 9908 KB Output is correct
15 Correct 6 ms 9872 KB Output is correct
16 Correct 6 ms 9812 KB Output is correct
17 Correct 7 ms 9812 KB Output is correct
18 Correct 6 ms 9812 KB Output is correct
19 Correct 5 ms 9868 KB Output is correct
20 Correct 6 ms 9812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 108 ms 24444 KB Output is correct
2 Correct 91 ms 24360 KB Output is correct
3 Correct 88 ms 24396 KB Output is correct
4 Correct 107 ms 24400 KB Output is correct
5 Correct 96 ms 24328 KB Output is correct
6 Correct 104 ms 32072 KB Output is correct
7 Correct 109 ms 29960 KB Output is correct
8 Correct 110 ms 28404 KB Output is correct
9 Correct 107 ms 26956 KB Output is correct
10 Correct 97 ms 24356 KB Output is correct
11 Correct 99 ms 25660 KB Output is correct
12 Correct 123 ms 25620 KB Output is correct
13 Correct 110 ms 25676 KB Output is correct
14 Correct 87 ms 25212 KB Output is correct
15 Correct 89 ms 24740 KB Output is correct
16 Correct 52 ms 23244 KB Output is correct
17 Correct 89 ms 25948 KB Output is correct
18 Correct 84 ms 26000 KB Output is correct
19 Correct 69 ms 26292 KB Output is correct
20 Correct 65 ms 26072 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9940 KB Output is correct
2 Correct 5 ms 9796 KB Output is correct
3 Correct 5 ms 9840 KB Output is correct
4 Correct 6 ms 9812 KB Output is correct
5 Correct 5 ms 9812 KB Output is correct
6 Correct 6 ms 9876 KB Output is correct
7 Correct 7 ms 9812 KB Output is correct
8 Correct 5 ms 9812 KB Output is correct
9 Correct 5 ms 9812 KB Output is correct
10 Correct 6 ms 9812 KB Output is correct
11 Correct 6 ms 9884 KB Output is correct
12 Correct 7 ms 9940 KB Output is correct
13 Correct 7 ms 9940 KB Output is correct
14 Correct 6 ms 9940 KB Output is correct
15 Correct 5 ms 9812 KB Output is correct
16 Correct 6 ms 9812 KB Output is correct
17 Correct 6 ms 9812 KB Output is correct
18 Correct 6 ms 9876 KB Output is correct
19 Correct 8 ms 9812 KB Output is correct
20 Correct 5 ms 9812 KB Output is correct
21 Correct 6 ms 9832 KB Output is correct
22 Correct 6 ms 9812 KB Output is correct
23 Correct 6 ms 9812 KB Output is correct
24 Correct 5 ms 9864 KB Output is correct
25 Correct 5 ms 9812 KB Output is correct
26 Correct 5 ms 9812 KB Output is correct
27 Correct 5 ms 9732 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 101 ms 24424 KB Output is correct
2 Correct 113 ms 24108 KB Output is correct
3 Correct 105 ms 23876 KB Output is correct
4 Correct 116 ms 22960 KB Output is correct
5 Correct 99 ms 21836 KB Output is correct
6 Correct 109 ms 21308 KB Output is correct
7 Correct 123 ms 21196 KB Output is correct
8 Correct 85 ms 20876 KB Output is correct
9 Correct 74 ms 20756 KB Output is correct
10 Correct 100 ms 20728 KB Output is correct
11 Correct 76 ms 20556 KB Output is correct
12 Correct 76 ms 20528 KB Output is correct
13 Correct 88 ms 20552 KB Output is correct
14 Correct 73 ms 22488 KB Output is correct
15 Correct 112 ms 29876 KB Output is correct
16 Correct 124 ms 27868 KB Output is correct
17 Correct 115 ms 28536 KB Output is correct
18 Correct 104 ms 26824 KB Output is correct
19 Correct 117 ms 22924 KB Output is correct
20 Correct 120 ms 24528 KB Output is correct
21 Correct 104 ms 24500 KB Output is correct
22 Correct 98 ms 23960 KB Output is correct
23 Correct 82 ms 23536 KB Output is correct
24 Correct 100 ms 25252 KB Output is correct
25 Correct 120 ms 25408 KB Output is correct
26 Correct 88 ms 24724 KB Output is correct
27 Correct 96 ms 24780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 7 ms 9684 KB Output is correct
4 Correct 6 ms 9684 KB Output is correct
5 Correct 6 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 6 ms 9724 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 6 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 6 ms 9736 KB Output is correct
12 Correct 5 ms 9684 KB Output is correct
13 Correct 5 ms 9684 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9684 KB Output is correct
16 Correct 6 ms 9684 KB Output is correct
17 Correct 7 ms 9684 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 7 ms 9748 KB Output is correct
20 Correct 7 ms 9812 KB Output is correct
21 Correct 6 ms 9684 KB Output is correct
22 Correct 7 ms 9728 KB Output is correct
23 Correct 6 ms 9736 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9732 KB Output is correct
26 Correct 6 ms 9756 KB Output is correct
27 Correct 6 ms 9740 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 6 ms 9672 KB Output is correct
30 Correct 6 ms 9740 KB Output is correct
31 Correct 6 ms 9628 KB Output is correct
32 Correct 7 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 8 ms 9720 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 6 ms 9732 KB Output is correct
39 Correct 6 ms 9812 KB Output is correct
40 Correct 6 ms 9732 KB Output is correct
41 Correct 6 ms 9684 KB Output is correct
42 Correct 6 ms 9684 KB Output is correct
43 Correct 6 ms 9684 KB Output is correct
44 Correct 6 ms 9684 KB Output is correct
45 Correct 6 ms 9684 KB Output is correct
46 Correct 7 ms 9684 KB Output is correct
47 Correct 6 ms 9684 KB Output is correct
48 Correct 6 ms 9684 KB Output is correct
49 Correct 6 ms 9684 KB Output is correct
50 Correct 6 ms 9732 KB Output is correct
51 Correct 5 ms 9732 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 6 ms 9748 KB Output is correct
54 Correct 5 ms 9732 KB Output is correct
55 Correct 5 ms 9644 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9748 KB Output is correct
58 Correct 6 ms 9660 KB Output is correct
59 Correct 5 ms 9740 KB Output is correct
60 Correct 6 ms 9716 KB Output is correct
61 Correct 5 ms 9740 KB Output is correct
62 Correct 7 ms 9736 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9740 KB Output is correct
65 Correct 6 ms 9684 KB Output is correct
66 Correct 5 ms 9732 KB Output is correct
67 Correct 6 ms 9868 KB Output is correct
68 Correct 5 ms 9812 KB Output is correct
69 Correct 5 ms 9812 KB Output is correct
70 Correct 6 ms 9940 KB Output is correct
71 Correct 6 ms 9868 KB Output is correct
72 Correct 8 ms 9852 KB Output is correct
73 Correct 6 ms 9868 KB Output is correct
74 Correct 6 ms 9812 KB Output is correct
75 Correct 6 ms 9876 KB Output is correct
76 Correct 5 ms 9684 KB Output is correct
77 Correct 8 ms 9828 KB Output is correct
78 Correct 6 ms 9812 KB Output is correct
79 Correct 6 ms 9812 KB Output is correct
80 Correct 6 ms 9812 KB Output is correct
81 Correct 5 ms 9812 KB Output is correct
82 Correct 6 ms 9896 KB Output is correct
83 Correct 5 ms 9812 KB Output is correct
84 Correct 6 ms 9872 KB Output is correct
85 Correct 6 ms 9812 KB Output is correct
86 Correct 7 ms 9812 KB Output is correct
87 Correct 7 ms 9856 KB Output is correct
88 Correct 6 ms 9840 KB Output is correct
89 Correct 6 ms 9812 KB Output is correct
90 Correct 6 ms 9868 KB Output is correct
91 Correct 5 ms 9812 KB Output is correct
92 Correct 7 ms 9812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 7 ms 9684 KB Output is correct
4 Correct 6 ms 9684 KB Output is correct
5 Correct 6 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 6 ms 9724 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 6 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 6 ms 9736 KB Output is correct
12 Correct 5 ms 9684 KB Output is correct
13 Correct 5 ms 9684 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9684 KB Output is correct
16 Correct 6 ms 9684 KB Output is correct
17 Correct 7 ms 9684 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 7 ms 9748 KB Output is correct
20 Correct 7 ms 9812 KB Output is correct
21 Correct 6 ms 9684 KB Output is correct
22 Correct 7 ms 9728 KB Output is correct
23 Correct 6 ms 9736 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9732 KB Output is correct
26 Correct 6 ms 9756 KB Output is correct
27 Correct 6 ms 9740 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 6 ms 9672 KB Output is correct
30 Correct 6 ms 9740 KB Output is correct
31 Correct 6 ms 9628 KB Output is correct
32 Correct 7 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 8 ms 9720 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 6 ms 9732 KB Output is correct
39 Correct 6 ms 9812 KB Output is correct
40 Correct 6 ms 9732 KB Output is correct
41 Correct 6 ms 9684 KB Output is correct
42 Correct 6 ms 9684 KB Output is correct
43 Correct 6 ms 9684 KB Output is correct
44 Correct 6 ms 9684 KB Output is correct
45 Correct 6 ms 9684 KB Output is correct
46 Correct 7 ms 9684 KB Output is correct
47 Correct 6 ms 9684 KB Output is correct
48 Correct 6 ms 9684 KB Output is correct
49 Correct 6 ms 9684 KB Output is correct
50 Correct 6 ms 9732 KB Output is correct
51 Correct 5 ms 9732 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 6 ms 9748 KB Output is correct
54 Correct 5 ms 9732 KB Output is correct
55 Correct 5 ms 9644 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9748 KB Output is correct
58 Correct 6 ms 9660 KB Output is correct
59 Correct 5 ms 9740 KB Output is correct
60 Correct 6 ms 9716 KB Output is correct
61 Correct 5 ms 9740 KB Output is correct
62 Correct 7 ms 9736 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9740 KB Output is correct
65 Correct 6 ms 9684 KB Output is correct
66 Correct 75 ms 28504 KB Output is correct
67 Correct 69 ms 28596 KB Output is correct
68 Correct 91 ms 28392 KB Output is correct
69 Correct 75 ms 28704 KB Output is correct
70 Correct 87 ms 26736 KB Output is correct
71 Correct 109 ms 28428 KB Output is correct
72 Correct 80 ms 26300 KB Output is correct
73 Correct 90 ms 26828 KB Output is correct
74 Correct 90 ms 24760 KB Output is correct
75 Correct 83 ms 25124 KB Output is correct
76 Correct 94 ms 23628 KB Output is correct
77 Correct 90 ms 23440 KB Output is correct
78 Correct 63 ms 23516 KB Output is correct
79 Correct 71 ms 23392 KB Output is correct
80 Correct 64 ms 23056 KB Output is correct
81 Correct 54 ms 22936 KB Output is correct
82 Correct 19 ms 20104 KB Output is correct
83 Correct 19 ms 20044 KB Output is correct
84 Correct 24 ms 20096 KB Output is correct
85 Correct 25 ms 20052 KB Output is correct
86 Correct 23 ms 20104 KB Output is correct
87 Correct 22 ms 20044 KB Output is correct
88 Correct 6 ms 9876 KB Output is correct
89 Correct 5 ms 9796 KB Output is correct
90 Correct 5 ms 9812 KB Output is correct
91 Correct 5 ms 9940 KB Output is correct
92 Correct 5 ms 9940 KB Output is correct
93 Correct 6 ms 9940 KB Output is correct
94 Correct 7 ms 9940 KB Output is correct
95 Correct 7 ms 9872 KB Output is correct
96 Correct 8 ms 9812 KB Output is correct
97 Correct 7 ms 9812 KB Output is correct
98 Correct 6 ms 9868 KB Output is correct
99 Correct 6 ms 9872 KB Output is correct
100 Correct 5 ms 9812 KB Output is correct
101 Correct 6 ms 9908 KB Output is correct
102 Correct 6 ms 9872 KB Output is correct
103 Correct 6 ms 9812 KB Output is correct
104 Correct 7 ms 9812 KB Output is correct
105 Correct 6 ms 9812 KB Output is correct
106 Correct 5 ms 9868 KB Output is correct
107 Correct 6 ms 9812 KB Output is correct
108 Correct 108 ms 24444 KB Output is correct
109 Correct 91 ms 24360 KB Output is correct
110 Correct 88 ms 24396 KB Output is correct
111 Correct 107 ms 24400 KB Output is correct
112 Correct 96 ms 24328 KB Output is correct
113 Correct 104 ms 32072 KB Output is correct
114 Correct 109 ms 29960 KB Output is correct
115 Correct 110 ms 28404 KB Output is correct
116 Correct 107 ms 26956 KB Output is correct
117 Correct 97 ms 24356 KB Output is correct
118 Correct 99 ms 25660 KB Output is correct
119 Correct 123 ms 25620 KB Output is correct
120 Correct 110 ms 25676 KB Output is correct
121 Correct 87 ms 25212 KB Output is correct
122 Correct 89 ms 24740 KB Output is correct
123 Correct 52 ms 23244 KB Output is correct
124 Correct 89 ms 25948 KB Output is correct
125 Correct 84 ms 26000 KB Output is correct
126 Correct 69 ms 26292 KB Output is correct
127 Correct 65 ms 26072 KB Output is correct
128 Correct 6 ms 9940 KB Output is correct
129 Correct 5 ms 9796 KB Output is correct
130 Correct 5 ms 9840 KB Output is correct
131 Correct 6 ms 9812 KB Output is correct
132 Correct 5 ms 9812 KB Output is correct
133 Correct 6 ms 9876 KB Output is correct
134 Correct 7 ms 9812 KB Output is correct
135 Correct 5 ms 9812 KB Output is correct
136 Correct 5 ms 9812 KB Output is correct
137 Correct 6 ms 9812 KB Output is correct
138 Correct 6 ms 9884 KB Output is correct
139 Correct 7 ms 9940 KB Output is correct
140 Correct 7 ms 9940 KB Output is correct
141 Correct 6 ms 9940 KB Output is correct
142 Correct 5 ms 9812 KB Output is correct
143 Correct 6 ms 9812 KB Output is correct
144 Correct 6 ms 9812 KB Output is correct
145 Correct 6 ms 9876 KB Output is correct
146 Correct 8 ms 9812 KB Output is correct
147 Correct 5 ms 9812 KB Output is correct
148 Correct 6 ms 9832 KB Output is correct
149 Correct 6 ms 9812 KB Output is correct
150 Correct 6 ms 9812 KB Output is correct
151 Correct 5 ms 9864 KB Output is correct
152 Correct 5 ms 9812 KB Output is correct
153 Correct 5 ms 9812 KB Output is correct
154 Correct 5 ms 9732 KB Output is correct
155 Correct 101 ms 24424 KB Output is correct
156 Correct 113 ms 24108 KB Output is correct
157 Correct 105 ms 23876 KB Output is correct
158 Correct 116 ms 22960 KB Output is correct
159 Correct 99 ms 21836 KB Output is correct
160 Correct 109 ms 21308 KB Output is correct
161 Correct 123 ms 21196 KB Output is correct
162 Correct 85 ms 20876 KB Output is correct
163 Correct 74 ms 20756 KB Output is correct
164 Correct 100 ms 20728 KB Output is correct
165 Correct 76 ms 20556 KB Output is correct
166 Correct 76 ms 20528 KB Output is correct
167 Correct 88 ms 20552 KB Output is correct
168 Correct 73 ms 22488 KB Output is correct
169 Correct 112 ms 29876 KB Output is correct
170 Correct 124 ms 27868 KB Output is correct
171 Correct 115 ms 28536 KB Output is correct
172 Correct 104 ms 26824 KB Output is correct
173 Correct 117 ms 22924 KB Output is correct
174 Correct 120 ms 24528 KB Output is correct
175 Correct 104 ms 24500 KB Output is correct
176 Correct 98 ms 23960 KB Output is correct
177 Correct 82 ms 23536 KB Output is correct
178 Correct 100 ms 25252 KB Output is correct
179 Correct 120 ms 25408 KB Output is correct
180 Correct 88 ms 24724 KB Output is correct
181 Correct 96 ms 24780 KB Output is correct
182 Correct 5 ms 9732 KB Output is correct
183 Correct 6 ms 9868 KB Output is correct
184 Correct 5 ms 9812 KB Output is correct
185 Correct 5 ms 9812 KB Output is correct
186 Correct 6 ms 9940 KB Output is correct
187 Correct 6 ms 9868 KB Output is correct
188 Correct 8 ms 9852 KB Output is correct
189 Correct 6 ms 9868 KB Output is correct
190 Correct 6 ms 9812 KB Output is correct
191 Correct 6 ms 9876 KB Output is correct
192 Correct 5 ms 9684 KB Output is correct
193 Correct 8 ms 9828 KB Output is correct
194 Correct 6 ms 9812 KB Output is correct
195 Correct 6 ms 9812 KB Output is correct
196 Correct 6 ms 9812 KB Output is correct
197 Correct 5 ms 9812 KB Output is correct
198 Correct 6 ms 9896 KB Output is correct
199 Correct 5 ms 9812 KB Output is correct
200 Correct 6 ms 9872 KB Output is correct
201 Correct 6 ms 9812 KB Output is correct
202 Correct 7 ms 9812 KB Output is correct
203 Correct 7 ms 9856 KB Output is correct
204 Correct 6 ms 9840 KB Output is correct
205 Correct 6 ms 9812 KB Output is correct
206 Correct 6 ms 9868 KB Output is correct
207 Correct 5 ms 9812 KB Output is correct
208 Correct 7 ms 9812 KB Output is correct
209 Correct 19 ms 20068 KB Output is correct
210 Correct 60 ms 23048 KB Output is correct
211 Correct 88 ms 25636 KB Output is correct
212 Correct 100 ms 28264 KB Output is correct
213 Correct 121 ms 30728 KB Output is correct
214 Correct 51 ms 24288 KB Output is correct
215 Correct 57 ms 23984 KB Output is correct
216 Correct 112 ms 25560 KB Output is correct
217 Correct 92 ms 24128 KB Output is correct
218 Correct 83 ms 22404 KB Output is correct
219 Correct 93 ms 21896 KB Output is correct
220 Correct 75 ms 21800 KB Output is correct
221 Correct 69 ms 21748 KB Output is correct
222 Correct 66 ms 22708 KB Output is correct
223 Correct 97 ms 26640 KB Output is correct
224 Correct 118 ms 25888 KB Output is correct
225 Correct 91 ms 23940 KB Output is correct
226 Correct 95 ms 23884 KB Output is correct
227 Correct 88 ms 23812 KB Output is correct
228 Correct 122 ms 23516 KB Output is correct
229 Correct 81 ms 23248 KB Output is correct
230 Correct 82 ms 24164 KB Output is correct
231 Correct 88 ms 24248 KB Output is correct