Submission #450163

# Submission time Handle Problem Language Result Execution time Memory
450163 2021-08-02T11:49:07 Z ymm Duathlon (APIO18_duathlon) C++17
100 / 100
233 ms 57028 KB
///
///    I have a dream and a piano
///

#define _USE_MATH_DEFINES
#define FAST ios::sync_with_stdio(false),cin.tie(0);
#include <bits/stdc++.h>
#define Loop(x, l, r) for(int x = (l); x < (r); ++x)
#define LoopR(x, l, r) for(int x = (r)-1; x >= (l); --x)
#define all(x) x.begin(), x.end()
#define Kill(x) exit((cout << (x) << '\n', 0))
#define YN(flag) ((flag)? "YES": "NO")
#define F first
#define S second
typedef          long long   ll;
typedef unsigned long long  ull;
typedef std::pair<int,int>  pii;
typedef std::pair<ll ,ll >  pll;
using namespace std;

const int N = 200'010;
vector<int> A[N];
vector<int> cs[N], vs[N]; int cnt = 0;

bool vis[N];
vector<int> st, vec;
int h[N];
int p[N];
ll stree[N];
tuple<int,int,int> dfs(int v)
{
    vis[v] = 1;
    int sum = 1;
    int tsum = 1;
    int mn = h[v];
    for(int u : A[v])
    {
        if(vis[u]) mn = min(mn, h[u]);
        else {
            auto [x, y, z] = dfs((h[u] = h[v]+1, p[u]=v, u));
            tsum += x;
            if(z >= h[v]) {
                vs[cnt].push_back(v);
                cs[v].push_back(cnt);
                while(y--)
                {
                    int w = st.back(); st.pop_back();
                    cs[w].push_back(cnt);
                    vs[cnt].push_back(w);
                }
                ++cnt;
            } else {
                mn = min(z, mn);
                sum += y;
            }
        }
    }
    stree[v] = tsum;
    st.push_back(v);
    vec.push_back(v);
    return {tsum, sum, mn};
}

ll cc[N]={};
ll vv[N]={};
ll hlp[N];
map<int,ll> hlpp[N];

ll solve(int v)
{
    p[v] = -1;
    vec.clear();
    ll n = (dfs(v), vec.size());

    for(int v : vec)
        for(int u : A[v])
            if(p[u] == v)
                hlp[v] += stree[u],
                hlpp[v][cs[u].back()] += stree[u];

    for(int v : vec)
    {
        for(int c : cs[v])
        {
            ll sum = 1 + hlp[v] - hlpp[v][c];
            if(c != cs[v].back())
                sum += n - stree[v];
            cc[c] += sum*(sum-1);
            vv[v] += sum*(sum-1);
        }
    }
    ll ans = 0;
    for(int v : vec)
    {
        ans += (n-1)*(n-2);
        for(int c : cs[v]) ans -= cc[c];
        ans += vv[v];
    }
    return ans;
}

int n, m;

int main()
{
    FAST;
    cin >> n >> m;
    Loop(i,0,m)
    {
        int v, u;
        cin >> v >> u;
        --v; --u;
        A[v].push_back(u);
        A[u].push_back(v);
    }
    ll ans = 0;
    Loop(i,0,n) if(!vis[i]) ans += solve(i);
    /*Loop(i,0,cnt)
    {
        for(int v : vs[i])
            cout << v << ' ';
        cout << '\n';
    }*/
    cout << ans << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 14 ms 23756 KB Output is correct
2 Correct 14 ms 23836 KB Output is correct
3 Correct 14 ms 23828 KB Output is correct
4 Correct 14 ms 23756 KB Output is correct
5 Correct 14 ms 23756 KB Output is correct
6 Correct 14 ms 23756 KB Output is correct
7 Correct 14 ms 23756 KB Output is correct
8 Correct 14 ms 23812 KB Output is correct
9 Correct 15 ms 23868 KB Output is correct
10 Correct 14 ms 23756 KB Output is correct
11 Correct 14 ms 23756 KB Output is correct
12 Correct 14 ms 23788 KB Output is correct
13 Correct 14 ms 23756 KB Output is correct
14 Correct 14 ms 23756 KB Output is correct
15 Correct 14 ms 23780 KB Output is correct
16 Correct 14 ms 23776 KB Output is correct
17 Correct 14 ms 23744 KB Output is correct
18 Correct 14 ms 23756 KB Output is correct
19 Correct 15 ms 23804 KB Output is correct
20 Correct 14 ms 23820 KB Output is correct
21 Correct 14 ms 23756 KB Output is correct
22 Correct 14 ms 23744 KB Output is correct
23 Correct 15 ms 23796 KB Output is correct
24 Correct 14 ms 23772 KB Output is correct
25 Correct 14 ms 23812 KB Output is correct
26 Correct 16 ms 23804 KB Output is correct
27 Correct 14 ms 23784 KB Output is correct
28 Correct 14 ms 23776 KB Output is correct
29 Correct 14 ms 23848 KB Output is correct
30 Correct 15 ms 23756 KB Output is correct
31 Correct 15 ms 23744 KB Output is correct
32 Correct 15 ms 23824 KB Output is correct
33 Correct 14 ms 23756 KB Output is correct
34 Correct 14 ms 23812 KB Output is correct
35 Correct 14 ms 23808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 23756 KB Output is correct
2 Correct 14 ms 23836 KB Output is correct
3 Correct 14 ms 23828 KB Output is correct
4 Correct 14 ms 23756 KB Output is correct
5 Correct 14 ms 23756 KB Output is correct
6 Correct 14 ms 23756 KB Output is correct
7 Correct 14 ms 23756 KB Output is correct
8 Correct 14 ms 23812 KB Output is correct
9 Correct 15 ms 23868 KB Output is correct
10 Correct 14 ms 23756 KB Output is correct
11 Correct 14 ms 23756 KB Output is correct
12 Correct 14 ms 23788 KB Output is correct
13 Correct 14 ms 23756 KB Output is correct
14 Correct 14 ms 23756 KB Output is correct
15 Correct 14 ms 23780 KB Output is correct
16 Correct 14 ms 23776 KB Output is correct
17 Correct 14 ms 23744 KB Output is correct
18 Correct 14 ms 23756 KB Output is correct
19 Correct 15 ms 23804 KB Output is correct
20 Correct 14 ms 23820 KB Output is correct
21 Correct 14 ms 23756 KB Output is correct
22 Correct 14 ms 23744 KB Output is correct
23 Correct 15 ms 23796 KB Output is correct
24 Correct 14 ms 23772 KB Output is correct
25 Correct 14 ms 23812 KB Output is correct
26 Correct 16 ms 23804 KB Output is correct
27 Correct 14 ms 23784 KB Output is correct
28 Correct 14 ms 23776 KB Output is correct
29 Correct 14 ms 23848 KB Output is correct
30 Correct 15 ms 23756 KB Output is correct
31 Correct 15 ms 23744 KB Output is correct
32 Correct 15 ms 23824 KB Output is correct
33 Correct 14 ms 23756 KB Output is correct
34 Correct 14 ms 23812 KB Output is correct
35 Correct 14 ms 23808 KB Output is correct
36 Correct 14 ms 23756 KB Output is correct
37 Correct 14 ms 23748 KB Output is correct
38 Correct 14 ms 23756 KB Output is correct
39 Correct 14 ms 23824 KB Output is correct
40 Correct 14 ms 23756 KB Output is correct
41 Correct 14 ms 23848 KB Output is correct
42 Correct 14 ms 23756 KB Output is correct
43 Correct 14 ms 23736 KB Output is correct
44 Correct 15 ms 23780 KB Output is correct
45 Correct 14 ms 23764 KB Output is correct
46 Correct 14 ms 23756 KB Output is correct
47 Correct 14 ms 23756 KB Output is correct
48 Correct 14 ms 23800 KB Output is correct
49 Correct 14 ms 23756 KB Output is correct
50 Correct 16 ms 23836 KB Output is correct
51 Correct 15 ms 23752 KB Output is correct
52 Correct 15 ms 23756 KB Output is correct
53 Correct 14 ms 23812 KB Output is correct
54 Correct 14 ms 23812 KB Output is correct
55 Correct 14 ms 23776 KB Output is correct
56 Correct 15 ms 23808 KB Output is correct
57 Correct 14 ms 23756 KB Output is correct
58 Correct 15 ms 23800 KB Output is correct
59 Correct 15 ms 23812 KB Output is correct
60 Correct 15 ms 23744 KB Output is correct
61 Correct 14 ms 23756 KB Output is correct
62 Correct 14 ms 23756 KB Output is correct
63 Correct 14 ms 23816 KB Output is correct
64 Correct 14 ms 23816 KB Output is correct
65 Correct 14 ms 23828 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 158 ms 52600 KB Output is correct
2 Correct 136 ms 52664 KB Output is correct
3 Correct 171 ms 51728 KB Output is correct
4 Correct 165 ms 52144 KB Output is correct
5 Correct 187 ms 48184 KB Output is correct
6 Correct 175 ms 50360 KB Output is correct
7 Correct 201 ms 49196 KB Output is correct
8 Correct 177 ms 50168 KB Output is correct
9 Correct 171 ms 48008 KB Output is correct
10 Correct 180 ms 48112 KB Output is correct
11 Correct 131 ms 44092 KB Output is correct
12 Correct 129 ms 43716 KB Output is correct
13 Correct 119 ms 43284 KB Output is correct
14 Correct 122 ms 42820 KB Output is correct
15 Correct 96 ms 40296 KB Output is correct
16 Correct 102 ms 39988 KB Output is correct
17 Correct 19 ms 26984 KB Output is correct
18 Correct 18 ms 27160 KB Output is correct
19 Correct 18 ms 27032 KB Output is correct
20 Correct 19 ms 26896 KB Output is correct
21 Correct 18 ms 26584 KB Output is correct
22 Correct 18 ms 26532 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 24012 KB Output is correct
2 Correct 14 ms 24012 KB Output is correct
3 Correct 15 ms 24080 KB Output is correct
4 Correct 15 ms 24124 KB Output is correct
5 Correct 15 ms 24132 KB Output is correct
6 Correct 15 ms 24076 KB Output is correct
7 Correct 15 ms 24076 KB Output is correct
8 Correct 16 ms 24140 KB Output is correct
9 Correct 17 ms 24048 KB Output is correct
10 Correct 17 ms 24128 KB Output is correct
11 Correct 15 ms 24012 KB Output is correct
12 Correct 15 ms 24012 KB Output is correct
13 Correct 15 ms 24120 KB Output is correct
14 Correct 15 ms 24072 KB Output is correct
15 Correct 16 ms 24012 KB Output is correct
16 Correct 15 ms 24012 KB Output is correct
17 Correct 21 ms 24232 KB Output is correct
18 Correct 15 ms 24012 KB Output is correct
19 Correct 15 ms 24044 KB Output is correct
20 Correct 15 ms 24012 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 184 ms 51344 KB Output is correct
2 Correct 189 ms 51260 KB Output is correct
3 Correct 190 ms 51324 KB Output is correct
4 Correct 187 ms 51344 KB Output is correct
5 Correct 173 ms 51352 KB Output is correct
6 Correct 191 ms 57028 KB Output is correct
7 Correct 184 ms 55056 KB Output is correct
8 Correct 205 ms 54080 KB Output is correct
9 Correct 202 ms 53100 KB Output is correct
10 Correct 177 ms 51136 KB Output is correct
11 Correct 189 ms 51212 KB Output is correct
12 Correct 176 ms 51012 KB Output is correct
13 Correct 182 ms 51076 KB Output is correct
14 Correct 175 ms 49196 KB Output is correct
15 Correct 141 ms 47260 KB Output is correct
16 Correct 95 ms 40768 KB Output is correct
17 Correct 154 ms 51136 KB Output is correct
18 Correct 161 ms 51400 KB Output is correct
19 Correct 159 ms 51368 KB Output is correct
20 Correct 159 ms 51404 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 24140 KB Output is correct
2 Correct 14 ms 24012 KB Output is correct
3 Correct 15 ms 24016 KB Output is correct
4 Correct 14 ms 24012 KB Output is correct
5 Correct 16 ms 24012 KB Output is correct
6 Correct 16 ms 23944 KB Output is correct
7 Correct 16 ms 24012 KB Output is correct
8 Correct 15 ms 23972 KB Output is correct
9 Correct 19 ms 23972 KB Output is correct
10 Correct 15 ms 24008 KB Output is correct
11 Correct 14 ms 24012 KB Output is correct
12 Correct 15 ms 24156 KB Output is correct
13 Correct 15 ms 24100 KB Output is correct
14 Correct 14 ms 24076 KB Output is correct
15 Correct 15 ms 24032 KB Output is correct
16 Correct 16 ms 24012 KB Output is correct
17 Correct 15 ms 24012 KB Output is correct
18 Correct 15 ms 24012 KB Output is correct
19 Correct 15 ms 23952 KB Output is correct
20 Correct 14 ms 23948 KB Output is correct
21 Correct 15 ms 24012 KB Output is correct
22 Correct 15 ms 24056 KB Output is correct
23 Correct 16 ms 24076 KB Output is correct
24 Correct 16 ms 24072 KB Output is correct
25 Correct 15 ms 23900 KB Output is correct
26 Correct 15 ms 23884 KB Output is correct
27 Correct 14 ms 23884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 175 ms 51272 KB Output is correct
2 Correct 179 ms 51156 KB Output is correct
3 Correct 179 ms 49436 KB Output is correct
4 Correct 171 ms 47220 KB Output is correct
5 Correct 207 ms 44756 KB Output is correct
6 Correct 165 ms 43772 KB Output is correct
7 Correct 181 ms 43196 KB Output is correct
8 Correct 187 ms 42612 KB Output is correct
9 Correct 146 ms 42432 KB Output is correct
10 Correct 151 ms 42208 KB Output is correct
11 Correct 148 ms 41912 KB Output is correct
12 Correct 180 ms 42052 KB Output is correct
13 Correct 161 ms 41900 KB Output is correct
14 Correct 155 ms 44504 KB Output is correct
15 Correct 187 ms 53892 KB Output is correct
16 Correct 196 ms 52424 KB Output is correct
17 Correct 188 ms 52284 KB Output is correct
18 Correct 196 ms 50780 KB Output is correct
19 Correct 195 ms 47192 KB Output is correct
20 Correct 185 ms 47032 KB Output is correct
21 Correct 195 ms 46956 KB Output is correct
22 Correct 165 ms 45116 KB Output is correct
23 Correct 145 ms 43436 KB Output is correct
24 Correct 220 ms 49836 KB Output is correct
25 Correct 204 ms 50288 KB Output is correct
26 Correct 211 ms 48844 KB Output is correct
27 Correct 220 ms 48844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 23756 KB Output is correct
2 Correct 14 ms 23836 KB Output is correct
3 Correct 14 ms 23828 KB Output is correct
4 Correct 14 ms 23756 KB Output is correct
5 Correct 14 ms 23756 KB Output is correct
6 Correct 14 ms 23756 KB Output is correct
7 Correct 14 ms 23756 KB Output is correct
8 Correct 14 ms 23812 KB Output is correct
9 Correct 15 ms 23868 KB Output is correct
10 Correct 14 ms 23756 KB Output is correct
11 Correct 14 ms 23756 KB Output is correct
12 Correct 14 ms 23788 KB Output is correct
13 Correct 14 ms 23756 KB Output is correct
14 Correct 14 ms 23756 KB Output is correct
15 Correct 14 ms 23780 KB Output is correct
16 Correct 14 ms 23776 KB Output is correct
17 Correct 14 ms 23744 KB Output is correct
18 Correct 14 ms 23756 KB Output is correct
19 Correct 15 ms 23804 KB Output is correct
20 Correct 14 ms 23820 KB Output is correct
21 Correct 14 ms 23756 KB Output is correct
22 Correct 14 ms 23744 KB Output is correct
23 Correct 15 ms 23796 KB Output is correct
24 Correct 14 ms 23772 KB Output is correct
25 Correct 14 ms 23812 KB Output is correct
26 Correct 16 ms 23804 KB Output is correct
27 Correct 14 ms 23784 KB Output is correct
28 Correct 14 ms 23776 KB Output is correct
29 Correct 14 ms 23848 KB Output is correct
30 Correct 15 ms 23756 KB Output is correct
31 Correct 15 ms 23744 KB Output is correct
32 Correct 15 ms 23824 KB Output is correct
33 Correct 14 ms 23756 KB Output is correct
34 Correct 14 ms 23812 KB Output is correct
35 Correct 14 ms 23808 KB Output is correct
36 Correct 14 ms 23756 KB Output is correct
37 Correct 14 ms 23748 KB Output is correct
38 Correct 14 ms 23756 KB Output is correct
39 Correct 14 ms 23824 KB Output is correct
40 Correct 14 ms 23756 KB Output is correct
41 Correct 14 ms 23848 KB Output is correct
42 Correct 14 ms 23756 KB Output is correct
43 Correct 14 ms 23736 KB Output is correct
44 Correct 15 ms 23780 KB Output is correct
45 Correct 14 ms 23764 KB Output is correct
46 Correct 14 ms 23756 KB Output is correct
47 Correct 14 ms 23756 KB Output is correct
48 Correct 14 ms 23800 KB Output is correct
49 Correct 14 ms 23756 KB Output is correct
50 Correct 16 ms 23836 KB Output is correct
51 Correct 15 ms 23752 KB Output is correct
52 Correct 15 ms 23756 KB Output is correct
53 Correct 14 ms 23812 KB Output is correct
54 Correct 14 ms 23812 KB Output is correct
55 Correct 14 ms 23776 KB Output is correct
56 Correct 15 ms 23808 KB Output is correct
57 Correct 14 ms 23756 KB Output is correct
58 Correct 15 ms 23800 KB Output is correct
59 Correct 15 ms 23812 KB Output is correct
60 Correct 15 ms 23744 KB Output is correct
61 Correct 14 ms 23756 KB Output is correct
62 Correct 14 ms 23756 KB Output is correct
63 Correct 14 ms 23816 KB Output is correct
64 Correct 14 ms 23816 KB Output is correct
65 Correct 14 ms 23828 KB Output is correct
66 Correct 13 ms 23864 KB Output is correct
67 Correct 13 ms 24012 KB Output is correct
68 Correct 13 ms 24076 KB Output is correct
69 Correct 14 ms 23988 KB Output is correct
70 Correct 14 ms 24076 KB Output is correct
71 Correct 13 ms 23944 KB Output is correct
72 Correct 13 ms 24012 KB Output is correct
73 Correct 13 ms 24032 KB Output is correct
74 Correct 15 ms 24012 KB Output is correct
75 Correct 15 ms 23944 KB Output is correct
76 Correct 14 ms 23812 KB Output is correct
77 Correct 16 ms 24012 KB Output is correct
78 Correct 13 ms 23992 KB Output is correct
79 Correct 14 ms 24012 KB Output is correct
80 Correct 15 ms 24012 KB Output is correct
81 Correct 14 ms 24024 KB Output is correct
82 Correct 13 ms 24012 KB Output is correct
83 Correct 17 ms 24012 KB Output is correct
84 Correct 16 ms 24012 KB Output is correct
85 Correct 15 ms 24088 KB Output is correct
86 Correct 15 ms 24004 KB Output is correct
87 Correct 16 ms 24056 KB Output is correct
88 Correct 16 ms 24012 KB Output is correct
89 Correct 15 ms 24012 KB Output is correct
90 Correct 15 ms 23972 KB Output is correct
91 Correct 15 ms 24024 KB Output is correct
92 Correct 15 ms 24068 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 23756 KB Output is correct
2 Correct 14 ms 23836 KB Output is correct
3 Correct 14 ms 23828 KB Output is correct
4 Correct 14 ms 23756 KB Output is correct
5 Correct 14 ms 23756 KB Output is correct
6 Correct 14 ms 23756 KB Output is correct
7 Correct 14 ms 23756 KB Output is correct
8 Correct 14 ms 23812 KB Output is correct
9 Correct 15 ms 23868 KB Output is correct
10 Correct 14 ms 23756 KB Output is correct
11 Correct 14 ms 23756 KB Output is correct
12 Correct 14 ms 23788 KB Output is correct
13 Correct 14 ms 23756 KB Output is correct
14 Correct 14 ms 23756 KB Output is correct
15 Correct 14 ms 23780 KB Output is correct
16 Correct 14 ms 23776 KB Output is correct
17 Correct 14 ms 23744 KB Output is correct
18 Correct 14 ms 23756 KB Output is correct
19 Correct 15 ms 23804 KB Output is correct
20 Correct 14 ms 23820 KB Output is correct
21 Correct 14 ms 23756 KB Output is correct
22 Correct 14 ms 23744 KB Output is correct
23 Correct 15 ms 23796 KB Output is correct
24 Correct 14 ms 23772 KB Output is correct
25 Correct 14 ms 23812 KB Output is correct
26 Correct 16 ms 23804 KB Output is correct
27 Correct 14 ms 23784 KB Output is correct
28 Correct 14 ms 23776 KB Output is correct
29 Correct 14 ms 23848 KB Output is correct
30 Correct 15 ms 23756 KB Output is correct
31 Correct 15 ms 23744 KB Output is correct
32 Correct 15 ms 23824 KB Output is correct
33 Correct 14 ms 23756 KB Output is correct
34 Correct 14 ms 23812 KB Output is correct
35 Correct 14 ms 23808 KB Output is correct
36 Correct 14 ms 23756 KB Output is correct
37 Correct 14 ms 23748 KB Output is correct
38 Correct 14 ms 23756 KB Output is correct
39 Correct 14 ms 23824 KB Output is correct
40 Correct 14 ms 23756 KB Output is correct
41 Correct 14 ms 23848 KB Output is correct
42 Correct 14 ms 23756 KB Output is correct
43 Correct 14 ms 23736 KB Output is correct
44 Correct 15 ms 23780 KB Output is correct
45 Correct 14 ms 23764 KB Output is correct
46 Correct 14 ms 23756 KB Output is correct
47 Correct 14 ms 23756 KB Output is correct
48 Correct 14 ms 23800 KB Output is correct
49 Correct 14 ms 23756 KB Output is correct
50 Correct 16 ms 23836 KB Output is correct
51 Correct 15 ms 23752 KB Output is correct
52 Correct 15 ms 23756 KB Output is correct
53 Correct 14 ms 23812 KB Output is correct
54 Correct 14 ms 23812 KB Output is correct
55 Correct 14 ms 23776 KB Output is correct
56 Correct 15 ms 23808 KB Output is correct
57 Correct 14 ms 23756 KB Output is correct
58 Correct 15 ms 23800 KB Output is correct
59 Correct 15 ms 23812 KB Output is correct
60 Correct 15 ms 23744 KB Output is correct
61 Correct 14 ms 23756 KB Output is correct
62 Correct 14 ms 23756 KB Output is correct
63 Correct 14 ms 23816 KB Output is correct
64 Correct 14 ms 23816 KB Output is correct
65 Correct 14 ms 23828 KB Output is correct
66 Correct 158 ms 52600 KB Output is correct
67 Correct 136 ms 52664 KB Output is correct
68 Correct 171 ms 51728 KB Output is correct
69 Correct 165 ms 52144 KB Output is correct
70 Correct 187 ms 48184 KB Output is correct
71 Correct 175 ms 50360 KB Output is correct
72 Correct 201 ms 49196 KB Output is correct
73 Correct 177 ms 50168 KB Output is correct
74 Correct 171 ms 48008 KB Output is correct
75 Correct 180 ms 48112 KB Output is correct
76 Correct 131 ms 44092 KB Output is correct
77 Correct 129 ms 43716 KB Output is correct
78 Correct 119 ms 43284 KB Output is correct
79 Correct 122 ms 42820 KB Output is correct
80 Correct 96 ms 40296 KB Output is correct
81 Correct 102 ms 39988 KB Output is correct
82 Correct 19 ms 26984 KB Output is correct
83 Correct 18 ms 27160 KB Output is correct
84 Correct 18 ms 27032 KB Output is correct
85 Correct 19 ms 26896 KB Output is correct
86 Correct 18 ms 26584 KB Output is correct
87 Correct 18 ms 26532 KB Output is correct
88 Correct 15 ms 24012 KB Output is correct
89 Correct 14 ms 24012 KB Output is correct
90 Correct 15 ms 24080 KB Output is correct
91 Correct 15 ms 24124 KB Output is correct
92 Correct 15 ms 24132 KB Output is correct
93 Correct 15 ms 24076 KB Output is correct
94 Correct 15 ms 24076 KB Output is correct
95 Correct 16 ms 24140 KB Output is correct
96 Correct 17 ms 24048 KB Output is correct
97 Correct 17 ms 24128 KB Output is correct
98 Correct 15 ms 24012 KB Output is correct
99 Correct 15 ms 24012 KB Output is correct
100 Correct 15 ms 24120 KB Output is correct
101 Correct 15 ms 24072 KB Output is correct
102 Correct 16 ms 24012 KB Output is correct
103 Correct 15 ms 24012 KB Output is correct
104 Correct 21 ms 24232 KB Output is correct
105 Correct 15 ms 24012 KB Output is correct
106 Correct 15 ms 24044 KB Output is correct
107 Correct 15 ms 24012 KB Output is correct
108 Correct 184 ms 51344 KB Output is correct
109 Correct 189 ms 51260 KB Output is correct
110 Correct 190 ms 51324 KB Output is correct
111 Correct 187 ms 51344 KB Output is correct
112 Correct 173 ms 51352 KB Output is correct
113 Correct 191 ms 57028 KB Output is correct
114 Correct 184 ms 55056 KB Output is correct
115 Correct 205 ms 54080 KB Output is correct
116 Correct 202 ms 53100 KB Output is correct
117 Correct 177 ms 51136 KB Output is correct
118 Correct 189 ms 51212 KB Output is correct
119 Correct 176 ms 51012 KB Output is correct
120 Correct 182 ms 51076 KB Output is correct
121 Correct 175 ms 49196 KB Output is correct
122 Correct 141 ms 47260 KB Output is correct
123 Correct 95 ms 40768 KB Output is correct
124 Correct 154 ms 51136 KB Output is correct
125 Correct 161 ms 51400 KB Output is correct
126 Correct 159 ms 51368 KB Output is correct
127 Correct 159 ms 51404 KB Output is correct
128 Correct 14 ms 24140 KB Output is correct
129 Correct 14 ms 24012 KB Output is correct
130 Correct 15 ms 24016 KB Output is correct
131 Correct 14 ms 24012 KB Output is correct
132 Correct 16 ms 24012 KB Output is correct
133 Correct 16 ms 23944 KB Output is correct
134 Correct 16 ms 24012 KB Output is correct
135 Correct 15 ms 23972 KB Output is correct
136 Correct 19 ms 23972 KB Output is correct
137 Correct 15 ms 24008 KB Output is correct
138 Correct 14 ms 24012 KB Output is correct
139 Correct 15 ms 24156 KB Output is correct
140 Correct 15 ms 24100 KB Output is correct
141 Correct 14 ms 24076 KB Output is correct
142 Correct 15 ms 24032 KB Output is correct
143 Correct 16 ms 24012 KB Output is correct
144 Correct 15 ms 24012 KB Output is correct
145 Correct 15 ms 24012 KB Output is correct
146 Correct 15 ms 23952 KB Output is correct
147 Correct 14 ms 23948 KB Output is correct
148 Correct 15 ms 24012 KB Output is correct
149 Correct 15 ms 24056 KB Output is correct
150 Correct 16 ms 24076 KB Output is correct
151 Correct 16 ms 24072 KB Output is correct
152 Correct 15 ms 23900 KB Output is correct
153 Correct 15 ms 23884 KB Output is correct
154 Correct 14 ms 23884 KB Output is correct
155 Correct 175 ms 51272 KB Output is correct
156 Correct 179 ms 51156 KB Output is correct
157 Correct 179 ms 49436 KB Output is correct
158 Correct 171 ms 47220 KB Output is correct
159 Correct 207 ms 44756 KB Output is correct
160 Correct 165 ms 43772 KB Output is correct
161 Correct 181 ms 43196 KB Output is correct
162 Correct 187 ms 42612 KB Output is correct
163 Correct 146 ms 42432 KB Output is correct
164 Correct 151 ms 42208 KB Output is correct
165 Correct 148 ms 41912 KB Output is correct
166 Correct 180 ms 42052 KB Output is correct
167 Correct 161 ms 41900 KB Output is correct
168 Correct 155 ms 44504 KB Output is correct
169 Correct 187 ms 53892 KB Output is correct
170 Correct 196 ms 52424 KB Output is correct
171 Correct 188 ms 52284 KB Output is correct
172 Correct 196 ms 50780 KB Output is correct
173 Correct 195 ms 47192 KB Output is correct
174 Correct 185 ms 47032 KB Output is correct
175 Correct 195 ms 46956 KB Output is correct
176 Correct 165 ms 45116 KB Output is correct
177 Correct 145 ms 43436 KB Output is correct
178 Correct 220 ms 49836 KB Output is correct
179 Correct 204 ms 50288 KB Output is correct
180 Correct 211 ms 48844 KB Output is correct
181 Correct 220 ms 48844 KB Output is correct
182 Correct 13 ms 23864 KB Output is correct
183 Correct 13 ms 24012 KB Output is correct
184 Correct 13 ms 24076 KB Output is correct
185 Correct 14 ms 23988 KB Output is correct
186 Correct 14 ms 24076 KB Output is correct
187 Correct 13 ms 23944 KB Output is correct
188 Correct 13 ms 24012 KB Output is correct
189 Correct 13 ms 24032 KB Output is correct
190 Correct 15 ms 24012 KB Output is correct
191 Correct 15 ms 23944 KB Output is correct
192 Correct 14 ms 23812 KB Output is correct
193 Correct 16 ms 24012 KB Output is correct
194 Correct 13 ms 23992 KB Output is correct
195 Correct 14 ms 24012 KB Output is correct
196 Correct 15 ms 24012 KB Output is correct
197 Correct 14 ms 24024 KB Output is correct
198 Correct 13 ms 24012 KB Output is correct
199 Correct 17 ms 24012 KB Output is correct
200 Correct 16 ms 24012 KB Output is correct
201 Correct 15 ms 24088 KB Output is correct
202 Correct 15 ms 24004 KB Output is correct
203 Correct 16 ms 24056 KB Output is correct
204 Correct 16 ms 24012 KB Output is correct
205 Correct 15 ms 24012 KB Output is correct
206 Correct 15 ms 23972 KB Output is correct
207 Correct 15 ms 24024 KB Output is correct
208 Correct 15 ms 24068 KB Output is correct
209 Correct 19 ms 25576 KB Output is correct
210 Correct 92 ms 40024 KB Output is correct
211 Correct 164 ms 46268 KB Output is correct
212 Correct 186 ms 49008 KB Output is correct
213 Correct 233 ms 50908 KB Output is correct
214 Correct 87 ms 43508 KB Output is correct
215 Correct 91 ms 42664 KB Output is correct
216 Correct 190 ms 48992 KB Output is correct
217 Correct 175 ms 46008 KB Output is correct
218 Correct 158 ms 43068 KB Output is correct
219 Correct 154 ms 42428 KB Output is correct
220 Correct 154 ms 42168 KB Output is correct
221 Correct 168 ms 41952 KB Output is correct
222 Correct 153 ms 43324 KB Output is correct
223 Correct 176 ms 48860 KB Output is correct
224 Correct 175 ms 47932 KB Output is correct
225 Correct 170 ms 45232 KB Output is correct
226 Correct 169 ms 45136 KB Output is correct
227 Correct 177 ms 45176 KB Output is correct
228 Correct 174 ms 43656 KB Output is correct
229 Correct 140 ms 42472 KB Output is correct
230 Correct 188 ms 46216 KB Output is correct
231 Correct 198 ms 46268 KB Output is correct