답안 #250766

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
250766 2020-07-19T05:35:59 Z fivefourthreeone 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
312 ms 38108 KB
#include <bits/stdc++.h>
#define owo(i,a, b) for(int i=(a); i<(b); ++i)
#define uwu(i,a, b) for(int i=(a)-1; i>=(b); --i)
#define senpai push_back
#define ttgl pair<int, int>
#define ayaya cout<<"ayaya~"<<endl
 
using namespace std;
using ll = long long;
using ld = long double;
const ll MOD = 998244353;
int gcd(int a,int b){return b?gcd(b,a%b):a;}
ll binpow(ll a,ll b){ll res=1;while(b){if(b&1)res=(res*a)%MOD;a=(a*a)%MOD;b>>=1;}return res;}
ll modInv(ll a){return binpow(a, MOD-2);}
const double PI = acos(-1);
const int INF = 0x3f3f3f3f;
const int NINF = 0xc0c0c0c0;
const ll INFLL = 0x3f3f3f3f3f3f3f3f;
const ll NINFLL = 0xc0c0c0c0c0c0c0c0;
const int mxN = 200001;
vector<int> adj[mxN];
vector<int> tree[mxN];
int cnt = 0;
bool flag[mxN];
int par[mxN], low[mxN], tin[mxN];
ll compsz[mxN];
ll sz[mxN];
int co = 0;
int n, m;
int totsz = 0;
vector<vector<ttgl>> fin;
vector<ttgl> st;
ll ans = 0;
void get(int u, bool root = 0) {
    tin[u]=low[u] = cnt++;
    int child = 0;
    for(int v: adj[u]) {
        if(v==par[u])continue;
        if(tin[v]==-1) {
            child++;
            par[v] = u;
            st.senpai({u, v});
            get(v);
            low[u] = min(low[v], low[u]);
            if((root&&child>1)||(!root&&tin[u]<=low[v])) {
                vector<ttgl> temp;
                while(st.back()!=(ttgl{u, v})) {
                    temp.senpai(st.back()); 
                    st.pop_back();
                }
                temp.senpai(st.back()); st.pop_back();
                fin.senpai(temp);
            }
        }else if(tin[v]<=tin[u]){
            low[u] = min(tin[v], low[u]);
            st.senpai({u, v});
        }
    }
}
void bcc() {
    memset(par, -1, sizeof(par));
    memset(low, -1, sizeof(low));
    memset(tin, -1, sizeof(tin));
    owo(i, 0, n) {
        if(tin[i]==-1) {
            get(i, 1);
            if(st.size()>0) {
                fin.senpai(st);
            }
            st.clear();
        }
    }
    for(auto a: fin) {
        set<int> s;
        for(auto b: a) {
            s.insert(b.first);s.insert(b.second);
        }
        compsz[co] = s.size();
        for(int k: s) {
            tree[k].senpai(n+co);
            tree[n+co].senpai(k);
        }
        co++;
    }
}
void dfssz(int u, int p) {
    flag[u] = true;
    sz[u] = u<n;
    for(int v: tree[u]) {
        if(v^p) {
            dfssz(v, u);
            sz[u]+=sz[v];
        }
    }
}
void solve(int u, int p, int rt) {
    if(u<n) {
        for(int v: tree[u]) {
            if(v^p) {
                ans-=(compsz[v-n]-1)*(sz[rt]-sz[v])*(sz[rt]-sz[v]-1);
            }else {
                ans-=(compsz[v-n]-1)*(sz[u]*(sz[u]-1));
            }
        }
    }
    for(int v: tree[u]) if(v^p) {
        solve(v, u, rt);
    }
}
int main()
{    
    //freopen("exercise.in", "r", stdin);
    //freopen("exercise.out", "w", stdout);
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    cin.tie(0)->sync_with_stdio(0);
    cin>>n>>m;
    int a, b;
    owo(i, 0, m) {
        cin>>a>>b;
        a--; b--;
        adj[a].senpai(b);
        adj[b].senpai(a);
    }
    bcc();
    owo(i, 0, n) {
        if(!flag[i]) {
            dfssz(i, i);
            ans+=(sz[i]*(sz[i]-1)*(sz[i]-2));
            solve(i, i, i);
        }
    }
    cout<<ans<<"\n";
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12032 KB Output is correct
2 Correct 9 ms 12032 KB Output is correct
3 Correct 9 ms 12032 KB Output is correct
4 Correct 9 ms 12032 KB Output is correct
5 Correct 9 ms 12032 KB Output is correct
6 Correct 9 ms 12032 KB Output is correct
7 Correct 8 ms 12032 KB Output is correct
8 Correct 9 ms 12032 KB Output is correct
9 Correct 7 ms 12032 KB Output is correct
10 Correct 7 ms 12032 KB Output is correct
11 Correct 8 ms 12032 KB Output is correct
12 Correct 8 ms 12032 KB Output is correct
13 Correct 7 ms 12032 KB Output is correct
14 Correct 9 ms 12160 KB Output is correct
15 Correct 9 ms 12032 KB Output is correct
16 Correct 10 ms 12032 KB Output is correct
17 Correct 8 ms 12032 KB Output is correct
18 Correct 7 ms 12032 KB Output is correct
19 Correct 8 ms 12032 KB Output is correct
20 Correct 8 ms 12032 KB Output is correct
21 Correct 7 ms 12032 KB Output is correct
22 Correct 7 ms 12032 KB Output is correct
23 Correct 7 ms 12032 KB Output is correct
24 Correct 8 ms 12032 KB Output is correct
25 Correct 8 ms 12032 KB Output is correct
26 Correct 8 ms 12032 KB Output is correct
27 Correct 8 ms 12032 KB Output is correct
28 Correct 7 ms 12100 KB Output is correct
29 Correct 9 ms 12032 KB Output is correct
30 Correct 9 ms 12032 KB Output is correct
31 Correct 9 ms 12032 KB Output is correct
32 Correct 7 ms 12032 KB Output is correct
33 Correct 9 ms 12032 KB Output is correct
34 Correct 9 ms 12032 KB Output is correct
35 Correct 8 ms 12032 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12032 KB Output is correct
2 Correct 9 ms 12032 KB Output is correct
3 Correct 9 ms 12032 KB Output is correct
4 Correct 9 ms 12032 KB Output is correct
5 Correct 9 ms 12032 KB Output is correct
6 Correct 9 ms 12032 KB Output is correct
7 Correct 8 ms 12032 KB Output is correct
8 Correct 9 ms 12032 KB Output is correct
9 Correct 7 ms 12032 KB Output is correct
10 Correct 7 ms 12032 KB Output is correct
11 Correct 8 ms 12032 KB Output is correct
12 Correct 8 ms 12032 KB Output is correct
13 Correct 7 ms 12032 KB Output is correct
14 Correct 9 ms 12160 KB Output is correct
15 Correct 9 ms 12032 KB Output is correct
16 Correct 10 ms 12032 KB Output is correct
17 Correct 8 ms 12032 KB Output is correct
18 Correct 7 ms 12032 KB Output is correct
19 Correct 8 ms 12032 KB Output is correct
20 Correct 8 ms 12032 KB Output is correct
21 Correct 7 ms 12032 KB Output is correct
22 Correct 7 ms 12032 KB Output is correct
23 Correct 7 ms 12032 KB Output is correct
24 Correct 8 ms 12032 KB Output is correct
25 Correct 8 ms 12032 KB Output is correct
26 Correct 8 ms 12032 KB Output is correct
27 Correct 8 ms 12032 KB Output is correct
28 Correct 7 ms 12100 KB Output is correct
29 Correct 9 ms 12032 KB Output is correct
30 Correct 9 ms 12032 KB Output is correct
31 Correct 9 ms 12032 KB Output is correct
32 Correct 7 ms 12032 KB Output is correct
33 Correct 9 ms 12032 KB Output is correct
34 Correct 9 ms 12032 KB Output is correct
35 Correct 8 ms 12032 KB Output is correct
36 Correct 10 ms 12032 KB Output is correct
37 Correct 8 ms 12032 KB Output is correct
38 Correct 7 ms 12032 KB Output is correct
39 Correct 10 ms 12160 KB Output is correct
40 Correct 11 ms 12032 KB Output is correct
41 Correct 8 ms 12032 KB Output is correct
42 Correct 7 ms 12160 KB Output is correct
43 Correct 8 ms 12032 KB Output is correct
44 Correct 9 ms 12032 KB Output is correct
45 Correct 7 ms 12032 KB Output is correct
46 Correct 8 ms 12032 KB Output is correct
47 Correct 10 ms 12160 KB Output is correct
48 Correct 9 ms 12032 KB Output is correct
49 Correct 11 ms 12032 KB Output is correct
50 Correct 11 ms 12032 KB Output is correct
51 Correct 10 ms 12160 KB Output is correct
52 Correct 9 ms 12160 KB Output is correct
53 Correct 7 ms 12032 KB Output is correct
54 Correct 7 ms 12032 KB Output is correct
55 Correct 8 ms 12032 KB Output is correct
56 Correct 9 ms 12032 KB Output is correct
57 Correct 10 ms 12032 KB Output is correct
58 Correct 8 ms 12160 KB Output is correct
59 Correct 7 ms 12032 KB Output is correct
60 Correct 9 ms 12032 KB Output is correct
61 Correct 9 ms 12160 KB Output is correct
62 Correct 9 ms 12032 KB Output is correct
63 Correct 8 ms 12032 KB Output is correct
64 Correct 7 ms 12160 KB Output is correct
65 Correct 9 ms 12160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 184 ms 38108 KB Output is correct
2 Correct 144 ms 38108 KB Output is correct
3 Correct 141 ms 32100 KB Output is correct
4 Correct 146 ms 36320 KB Output is correct
5 Correct 146 ms 28648 KB Output is correct
6 Correct 155 ms 31720 KB Output is correct
7 Correct 143 ms 30852 KB Output is correct
8 Correct 145 ms 31912 KB Output is correct
9 Correct 137 ms 28460 KB Output is correct
10 Correct 146 ms 28584 KB Output is correct
11 Correct 106 ms 25512 KB Output is correct
12 Correct 102 ms 25256 KB Output is correct
13 Correct 105 ms 25016 KB Output is correct
14 Correct 106 ms 24616 KB Output is correct
15 Correct 75 ms 22996 KB Output is correct
16 Correct 71 ms 22700 KB Output is correct
17 Correct 10 ms 13056 KB Output is correct
18 Correct 11 ms 13056 KB Output is correct
19 Correct 11 ms 13056 KB Output is correct
20 Correct 10 ms 12960 KB Output is correct
21 Correct 11 ms 13056 KB Output is correct
22 Correct 11 ms 13056 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 12288 KB Output is correct
2 Correct 10 ms 12288 KB Output is correct
3 Correct 8 ms 12288 KB Output is correct
4 Correct 11 ms 12416 KB Output is correct
5 Correct 9 ms 12288 KB Output is correct
6 Correct 8 ms 12288 KB Output is correct
7 Correct 9 ms 12288 KB Output is correct
8 Correct 9 ms 12288 KB Output is correct
9 Correct 8 ms 12288 KB Output is correct
10 Correct 9 ms 12288 KB Output is correct
11 Correct 8 ms 12288 KB Output is correct
12 Correct 8 ms 12288 KB Output is correct
13 Correct 10 ms 12288 KB Output is correct
14 Correct 9 ms 12288 KB Output is correct
15 Correct 9 ms 12416 KB Output is correct
16 Correct 10 ms 12160 KB Output is correct
17 Correct 12 ms 12288 KB Output is correct
18 Correct 10 ms 12288 KB Output is correct
19 Correct 10 ms 12288 KB Output is correct
20 Correct 10 ms 12288 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 205 ms 31008 KB Output is correct
2 Correct 143 ms 31008 KB Output is correct
3 Correct 166 ms 31008 KB Output is correct
4 Correct 141 ms 31012 KB Output is correct
5 Correct 158 ms 30948 KB Output is correct
6 Correct 156 ms 37984 KB Output is correct
7 Correct 167 ms 35684 KB Output is correct
8 Correct 170 ms 34344 KB Output is correct
9 Correct 166 ms 33132 KB Output is correct
10 Correct 157 ms 31012 KB Output is correct
11 Correct 179 ms 31012 KB Output is correct
12 Correct 164 ms 31008 KB Output is correct
13 Correct 151 ms 31016 KB Output is correct
14 Correct 166 ms 29728 KB Output is correct
15 Correct 145 ms 28196 KB Output is correct
16 Correct 70 ms 23468 KB Output is correct
17 Correct 122 ms 31512 KB Output is correct
18 Correct 111 ms 31516 KB Output is correct
19 Correct 141 ms 31556 KB Output is correct
20 Correct 119 ms 31528 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 12288 KB Output is correct
2 Correct 15 ms 12288 KB Output is correct
3 Correct 10 ms 12288 KB Output is correct
4 Correct 10 ms 12288 KB Output is correct
5 Correct 10 ms 12288 KB Output is correct
6 Correct 10 ms 12160 KB Output is correct
7 Correct 10 ms 12160 KB Output is correct
8 Correct 10 ms 12160 KB Output is correct
9 Correct 10 ms 12160 KB Output is correct
10 Correct 8 ms 12192 KB Output is correct
11 Correct 10 ms 12160 KB Output is correct
12 Correct 11 ms 12288 KB Output is correct
13 Correct 9 ms 12288 KB Output is correct
14 Correct 14 ms 12288 KB Output is correct
15 Correct 10 ms 12288 KB Output is correct
16 Correct 9 ms 12288 KB Output is correct
17 Correct 14 ms 12288 KB Output is correct
18 Correct 8 ms 12288 KB Output is correct
19 Correct 8 ms 12160 KB Output is correct
20 Correct 10 ms 12160 KB Output is correct
21 Correct 10 ms 12288 KB Output is correct
22 Correct 9 ms 12288 KB Output is correct
23 Correct 9 ms 12288 KB Output is correct
24 Correct 9 ms 12288 KB Output is correct
25 Correct 8 ms 12160 KB Output is correct
26 Correct 10 ms 12160 KB Output is correct
27 Correct 8 ms 12160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 172 ms 30924 KB Output is correct
2 Correct 150 ms 30884 KB Output is correct
3 Correct 143 ms 29348 KB Output is correct
4 Correct 174 ms 27308 KB Output is correct
5 Correct 154 ms 25016 KB Output is correct
6 Correct 133 ms 24112 KB Output is correct
7 Correct 112 ms 23600 KB Output is correct
8 Correct 121 ms 23092 KB Output is correct
9 Correct 123 ms 22836 KB Output is correct
10 Correct 109 ms 22648 KB Output is correct
11 Correct 107 ms 22392 KB Output is correct
12 Correct 131 ms 22392 KB Output is correct
13 Correct 120 ms 22264 KB Output is correct
14 Correct 113 ms 25452 KB Output is correct
15 Correct 170 ms 34480 KB Output is correct
16 Correct 186 ms 32660 KB Output is correct
17 Correct 162 ms 32612 KB Output is correct
18 Correct 208 ms 31112 KB Output is correct
19 Correct 202 ms 27304 KB Output is correct
20 Correct 147 ms 27304 KB Output is correct
21 Correct 146 ms 27304 KB Output is correct
22 Correct 132 ms 26068 KB Output is correct
23 Correct 126 ms 24876 KB Output is correct
24 Correct 139 ms 29736 KB Output is correct
25 Correct 227 ms 29736 KB Output is correct
26 Correct 174 ms 28448 KB Output is correct
27 Correct 237 ms 28460 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12032 KB Output is correct
2 Correct 9 ms 12032 KB Output is correct
3 Correct 9 ms 12032 KB Output is correct
4 Correct 9 ms 12032 KB Output is correct
5 Correct 9 ms 12032 KB Output is correct
6 Correct 9 ms 12032 KB Output is correct
7 Correct 8 ms 12032 KB Output is correct
8 Correct 9 ms 12032 KB Output is correct
9 Correct 7 ms 12032 KB Output is correct
10 Correct 7 ms 12032 KB Output is correct
11 Correct 8 ms 12032 KB Output is correct
12 Correct 8 ms 12032 KB Output is correct
13 Correct 7 ms 12032 KB Output is correct
14 Correct 9 ms 12160 KB Output is correct
15 Correct 9 ms 12032 KB Output is correct
16 Correct 10 ms 12032 KB Output is correct
17 Correct 8 ms 12032 KB Output is correct
18 Correct 7 ms 12032 KB Output is correct
19 Correct 8 ms 12032 KB Output is correct
20 Correct 8 ms 12032 KB Output is correct
21 Correct 7 ms 12032 KB Output is correct
22 Correct 7 ms 12032 KB Output is correct
23 Correct 7 ms 12032 KB Output is correct
24 Correct 8 ms 12032 KB Output is correct
25 Correct 8 ms 12032 KB Output is correct
26 Correct 8 ms 12032 KB Output is correct
27 Correct 8 ms 12032 KB Output is correct
28 Correct 7 ms 12100 KB Output is correct
29 Correct 9 ms 12032 KB Output is correct
30 Correct 9 ms 12032 KB Output is correct
31 Correct 9 ms 12032 KB Output is correct
32 Correct 7 ms 12032 KB Output is correct
33 Correct 9 ms 12032 KB Output is correct
34 Correct 9 ms 12032 KB Output is correct
35 Correct 8 ms 12032 KB Output is correct
36 Correct 10 ms 12032 KB Output is correct
37 Correct 8 ms 12032 KB Output is correct
38 Correct 7 ms 12032 KB Output is correct
39 Correct 10 ms 12160 KB Output is correct
40 Correct 11 ms 12032 KB Output is correct
41 Correct 8 ms 12032 KB Output is correct
42 Correct 7 ms 12160 KB Output is correct
43 Correct 8 ms 12032 KB Output is correct
44 Correct 9 ms 12032 KB Output is correct
45 Correct 7 ms 12032 KB Output is correct
46 Correct 8 ms 12032 KB Output is correct
47 Correct 10 ms 12160 KB Output is correct
48 Correct 9 ms 12032 KB Output is correct
49 Correct 11 ms 12032 KB Output is correct
50 Correct 11 ms 12032 KB Output is correct
51 Correct 10 ms 12160 KB Output is correct
52 Correct 9 ms 12160 KB Output is correct
53 Correct 7 ms 12032 KB Output is correct
54 Correct 7 ms 12032 KB Output is correct
55 Correct 8 ms 12032 KB Output is correct
56 Correct 9 ms 12032 KB Output is correct
57 Correct 10 ms 12032 KB Output is correct
58 Correct 8 ms 12160 KB Output is correct
59 Correct 7 ms 12032 KB Output is correct
60 Correct 9 ms 12032 KB Output is correct
61 Correct 9 ms 12160 KB Output is correct
62 Correct 9 ms 12032 KB Output is correct
63 Correct 8 ms 12032 KB Output is correct
64 Correct 7 ms 12160 KB Output is correct
65 Correct 9 ms 12160 KB Output is correct
66 Correct 7 ms 12160 KB Output is correct
67 Correct 10 ms 12160 KB Output is correct
68 Correct 8 ms 12288 KB Output is correct
69 Correct 10 ms 12288 KB Output is correct
70 Correct 9 ms 12288 KB Output is correct
71 Correct 8 ms 12160 KB Output is correct
72 Correct 8 ms 12288 KB Output is correct
73 Correct 8 ms 12160 KB Output is correct
74 Correct 9 ms 12160 KB Output is correct
75 Correct 8 ms 12160 KB Output is correct
76 Correct 7 ms 12160 KB Output is correct
77 Correct 10 ms 12288 KB Output is correct
78 Correct 10 ms 12288 KB Output is correct
79 Correct 9 ms 12160 KB Output is correct
80 Correct 8 ms 12160 KB Output is correct
81 Correct 8 ms 12160 KB Output is correct
82 Correct 10 ms 12288 KB Output is correct
83 Correct 8 ms 12288 KB Output is correct
84 Correct 10 ms 12288 KB Output is correct
85 Correct 10 ms 12288 KB Output is correct
86 Correct 10 ms 12160 KB Output is correct
87 Correct 8 ms 12160 KB Output is correct
88 Correct 9 ms 12160 KB Output is correct
89 Correct 8 ms 12160 KB Output is correct
90 Correct 8 ms 12160 KB Output is correct
91 Correct 8 ms 12288 KB Output is correct
92 Correct 8 ms 12288 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 12032 KB Output is correct
2 Correct 9 ms 12032 KB Output is correct
3 Correct 9 ms 12032 KB Output is correct
4 Correct 9 ms 12032 KB Output is correct
5 Correct 9 ms 12032 KB Output is correct
6 Correct 9 ms 12032 KB Output is correct
7 Correct 8 ms 12032 KB Output is correct
8 Correct 9 ms 12032 KB Output is correct
9 Correct 7 ms 12032 KB Output is correct
10 Correct 7 ms 12032 KB Output is correct
11 Correct 8 ms 12032 KB Output is correct
12 Correct 8 ms 12032 KB Output is correct
13 Correct 7 ms 12032 KB Output is correct
14 Correct 9 ms 12160 KB Output is correct
15 Correct 9 ms 12032 KB Output is correct
16 Correct 10 ms 12032 KB Output is correct
17 Correct 8 ms 12032 KB Output is correct
18 Correct 7 ms 12032 KB Output is correct
19 Correct 8 ms 12032 KB Output is correct
20 Correct 8 ms 12032 KB Output is correct
21 Correct 7 ms 12032 KB Output is correct
22 Correct 7 ms 12032 KB Output is correct
23 Correct 7 ms 12032 KB Output is correct
24 Correct 8 ms 12032 KB Output is correct
25 Correct 8 ms 12032 KB Output is correct
26 Correct 8 ms 12032 KB Output is correct
27 Correct 8 ms 12032 KB Output is correct
28 Correct 7 ms 12100 KB Output is correct
29 Correct 9 ms 12032 KB Output is correct
30 Correct 9 ms 12032 KB Output is correct
31 Correct 9 ms 12032 KB Output is correct
32 Correct 7 ms 12032 KB Output is correct
33 Correct 9 ms 12032 KB Output is correct
34 Correct 9 ms 12032 KB Output is correct
35 Correct 8 ms 12032 KB Output is correct
36 Correct 10 ms 12032 KB Output is correct
37 Correct 8 ms 12032 KB Output is correct
38 Correct 7 ms 12032 KB Output is correct
39 Correct 10 ms 12160 KB Output is correct
40 Correct 11 ms 12032 KB Output is correct
41 Correct 8 ms 12032 KB Output is correct
42 Correct 7 ms 12160 KB Output is correct
43 Correct 8 ms 12032 KB Output is correct
44 Correct 9 ms 12032 KB Output is correct
45 Correct 7 ms 12032 KB Output is correct
46 Correct 8 ms 12032 KB Output is correct
47 Correct 10 ms 12160 KB Output is correct
48 Correct 9 ms 12032 KB Output is correct
49 Correct 11 ms 12032 KB Output is correct
50 Correct 11 ms 12032 KB Output is correct
51 Correct 10 ms 12160 KB Output is correct
52 Correct 9 ms 12160 KB Output is correct
53 Correct 7 ms 12032 KB Output is correct
54 Correct 7 ms 12032 KB Output is correct
55 Correct 8 ms 12032 KB Output is correct
56 Correct 9 ms 12032 KB Output is correct
57 Correct 10 ms 12032 KB Output is correct
58 Correct 8 ms 12160 KB Output is correct
59 Correct 7 ms 12032 KB Output is correct
60 Correct 9 ms 12032 KB Output is correct
61 Correct 9 ms 12160 KB Output is correct
62 Correct 9 ms 12032 KB Output is correct
63 Correct 8 ms 12032 KB Output is correct
64 Correct 7 ms 12160 KB Output is correct
65 Correct 9 ms 12160 KB Output is correct
66 Correct 184 ms 38108 KB Output is correct
67 Correct 144 ms 38108 KB Output is correct
68 Correct 141 ms 32100 KB Output is correct
69 Correct 146 ms 36320 KB Output is correct
70 Correct 146 ms 28648 KB Output is correct
71 Correct 155 ms 31720 KB Output is correct
72 Correct 143 ms 30852 KB Output is correct
73 Correct 145 ms 31912 KB Output is correct
74 Correct 137 ms 28460 KB Output is correct
75 Correct 146 ms 28584 KB Output is correct
76 Correct 106 ms 25512 KB Output is correct
77 Correct 102 ms 25256 KB Output is correct
78 Correct 105 ms 25016 KB Output is correct
79 Correct 106 ms 24616 KB Output is correct
80 Correct 75 ms 22996 KB Output is correct
81 Correct 71 ms 22700 KB Output is correct
82 Correct 10 ms 13056 KB Output is correct
83 Correct 11 ms 13056 KB Output is correct
84 Correct 11 ms 13056 KB Output is correct
85 Correct 10 ms 12960 KB Output is correct
86 Correct 11 ms 13056 KB Output is correct
87 Correct 11 ms 13056 KB Output is correct
88 Correct 9 ms 12288 KB Output is correct
89 Correct 10 ms 12288 KB Output is correct
90 Correct 8 ms 12288 KB Output is correct
91 Correct 11 ms 12416 KB Output is correct
92 Correct 9 ms 12288 KB Output is correct
93 Correct 8 ms 12288 KB Output is correct
94 Correct 9 ms 12288 KB Output is correct
95 Correct 9 ms 12288 KB Output is correct
96 Correct 8 ms 12288 KB Output is correct
97 Correct 9 ms 12288 KB Output is correct
98 Correct 8 ms 12288 KB Output is correct
99 Correct 8 ms 12288 KB Output is correct
100 Correct 10 ms 12288 KB Output is correct
101 Correct 9 ms 12288 KB Output is correct
102 Correct 9 ms 12416 KB Output is correct
103 Correct 10 ms 12160 KB Output is correct
104 Correct 12 ms 12288 KB Output is correct
105 Correct 10 ms 12288 KB Output is correct
106 Correct 10 ms 12288 KB Output is correct
107 Correct 10 ms 12288 KB Output is correct
108 Correct 205 ms 31008 KB Output is correct
109 Correct 143 ms 31008 KB Output is correct
110 Correct 166 ms 31008 KB Output is correct
111 Correct 141 ms 31012 KB Output is correct
112 Correct 158 ms 30948 KB Output is correct
113 Correct 156 ms 37984 KB Output is correct
114 Correct 167 ms 35684 KB Output is correct
115 Correct 170 ms 34344 KB Output is correct
116 Correct 166 ms 33132 KB Output is correct
117 Correct 157 ms 31012 KB Output is correct
118 Correct 179 ms 31012 KB Output is correct
119 Correct 164 ms 31008 KB Output is correct
120 Correct 151 ms 31016 KB Output is correct
121 Correct 166 ms 29728 KB Output is correct
122 Correct 145 ms 28196 KB Output is correct
123 Correct 70 ms 23468 KB Output is correct
124 Correct 122 ms 31512 KB Output is correct
125 Correct 111 ms 31516 KB Output is correct
126 Correct 141 ms 31556 KB Output is correct
127 Correct 119 ms 31528 KB Output is correct
128 Correct 9 ms 12288 KB Output is correct
129 Correct 15 ms 12288 KB Output is correct
130 Correct 10 ms 12288 KB Output is correct
131 Correct 10 ms 12288 KB Output is correct
132 Correct 10 ms 12288 KB Output is correct
133 Correct 10 ms 12160 KB Output is correct
134 Correct 10 ms 12160 KB Output is correct
135 Correct 10 ms 12160 KB Output is correct
136 Correct 10 ms 12160 KB Output is correct
137 Correct 8 ms 12192 KB Output is correct
138 Correct 10 ms 12160 KB Output is correct
139 Correct 11 ms 12288 KB Output is correct
140 Correct 9 ms 12288 KB Output is correct
141 Correct 14 ms 12288 KB Output is correct
142 Correct 10 ms 12288 KB Output is correct
143 Correct 9 ms 12288 KB Output is correct
144 Correct 14 ms 12288 KB Output is correct
145 Correct 8 ms 12288 KB Output is correct
146 Correct 8 ms 12160 KB Output is correct
147 Correct 10 ms 12160 KB Output is correct
148 Correct 10 ms 12288 KB Output is correct
149 Correct 9 ms 12288 KB Output is correct
150 Correct 9 ms 12288 KB Output is correct
151 Correct 9 ms 12288 KB Output is correct
152 Correct 8 ms 12160 KB Output is correct
153 Correct 10 ms 12160 KB Output is correct
154 Correct 8 ms 12160 KB Output is correct
155 Correct 172 ms 30924 KB Output is correct
156 Correct 150 ms 30884 KB Output is correct
157 Correct 143 ms 29348 KB Output is correct
158 Correct 174 ms 27308 KB Output is correct
159 Correct 154 ms 25016 KB Output is correct
160 Correct 133 ms 24112 KB Output is correct
161 Correct 112 ms 23600 KB Output is correct
162 Correct 121 ms 23092 KB Output is correct
163 Correct 123 ms 22836 KB Output is correct
164 Correct 109 ms 22648 KB Output is correct
165 Correct 107 ms 22392 KB Output is correct
166 Correct 131 ms 22392 KB Output is correct
167 Correct 120 ms 22264 KB Output is correct
168 Correct 113 ms 25452 KB Output is correct
169 Correct 170 ms 34480 KB Output is correct
170 Correct 186 ms 32660 KB Output is correct
171 Correct 162 ms 32612 KB Output is correct
172 Correct 208 ms 31112 KB Output is correct
173 Correct 202 ms 27304 KB Output is correct
174 Correct 147 ms 27304 KB Output is correct
175 Correct 146 ms 27304 KB Output is correct
176 Correct 132 ms 26068 KB Output is correct
177 Correct 126 ms 24876 KB Output is correct
178 Correct 139 ms 29736 KB Output is correct
179 Correct 227 ms 29736 KB Output is correct
180 Correct 174 ms 28448 KB Output is correct
181 Correct 237 ms 28460 KB Output is correct
182 Correct 7 ms 12160 KB Output is correct
183 Correct 10 ms 12160 KB Output is correct
184 Correct 8 ms 12288 KB Output is correct
185 Correct 10 ms 12288 KB Output is correct
186 Correct 9 ms 12288 KB Output is correct
187 Correct 8 ms 12160 KB Output is correct
188 Correct 8 ms 12288 KB Output is correct
189 Correct 8 ms 12160 KB Output is correct
190 Correct 9 ms 12160 KB Output is correct
191 Correct 8 ms 12160 KB Output is correct
192 Correct 7 ms 12160 KB Output is correct
193 Correct 10 ms 12288 KB Output is correct
194 Correct 10 ms 12288 KB Output is correct
195 Correct 9 ms 12160 KB Output is correct
196 Correct 8 ms 12160 KB Output is correct
197 Correct 8 ms 12160 KB Output is correct
198 Correct 10 ms 12288 KB Output is correct
199 Correct 8 ms 12288 KB Output is correct
200 Correct 10 ms 12288 KB Output is correct
201 Correct 10 ms 12288 KB Output is correct
202 Correct 10 ms 12160 KB Output is correct
203 Correct 8 ms 12160 KB Output is correct
204 Correct 9 ms 12160 KB Output is correct
205 Correct 8 ms 12160 KB Output is correct
206 Correct 8 ms 12160 KB Output is correct
207 Correct 8 ms 12288 KB Output is correct
208 Correct 8 ms 12288 KB Output is correct
209 Correct 10 ms 12928 KB Output is correct
210 Correct 74 ms 22828 KB Output is correct
211 Correct 144 ms 29984 KB Output is correct
212 Correct 229 ms 34108 KB Output is correct
213 Correct 312 ms 37860 KB Output is correct
214 Correct 84 ms 25004 KB Output is correct
215 Correct 89 ms 24368 KB Output is correct
216 Correct 212 ms 28196 KB Output is correct
217 Correct 188 ms 25640 KB Output is correct
218 Correct 125 ms 23092 KB Output is correct
219 Correct 116 ms 22424 KB Output is correct
220 Correct 134 ms 22264 KB Output is correct
221 Correct 172 ms 22184 KB Output is correct
222 Correct 166 ms 23912 KB Output is correct
223 Correct 171 ms 28972 KB Output is correct
224 Correct 199 ms 27816 KB Output is correct
225 Correct 140 ms 25132 KB Output is correct
226 Correct 136 ms 25004 KB Output is correct
227 Correct 138 ms 25088 KB Output is correct
228 Correct 117 ms 24368 KB Output is correct
229 Correct 150 ms 23724 KB Output is correct
230 Correct 172 ms 25900 KB Output is correct
231 Correct 168 ms 25956 KB Output is correct