답안 #397288

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
397288 2021-05-01T20:15:29 Z osaaateiasavtnl 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
194 ms 58216 KB
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <bitset>
#include <fstream>
using namespace std;
#define int long long
#define ii pair <int, int>
#define app push_back
#define all(a) a.begin(), a.end()
#define bp __builtin_popcountll
#define ll long long
#define mp make_pair
#define x first
#define y second
#define Time (double)clock()/CLOCKS_PER_SEC
#define debug(x) std::cerr << #x << ": " << x << '\n';
#define FOR(i, n) for (int i = 0; i < n; ++i)
#define FORN(i, n) for (int i = 1; i <= n; ++i)
#define pb push_back
#define trav(a, x) for (auto& a : x)
using vi = vector<int>;
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& data)
{
    for (T& x : data)
        input >> x;
    return input;
}
template <typename T>
std::ostream& operator <<(std::ostream& output, const pair <T, T> & data)
{
    output << "(" << data.x << "," << data.y << ")";
    return output;
}
template <typename T>
std::ostream& operator <<(std::ostream& output, const std::vector<T>& data)
{
    for (const T& x : data)
        output << x << " ";
    return output;
}
ll div_up(ll a, ll b) { return a/b+((a^b)>0&&a%b); } // divide a by b rounded up
ll div_down(ll a, ll b) { return a/b-((a^b)<0&&a%b); } // divide a by b rounded down 
ll math_mod(ll a, ll b) { return a - b * div_down(a, b); }
#define tcT template<class T
#define tcTU tcT, class U
tcT> using V = vector<T>; 
tcT> void re(V<T>& x) { 
    trav(a, x)
        cin >> a;
}
tcT> bool ckmin(T& a, const T& b) {
    return b < a ? a = b, 1 : 0; 
} // set a = min(a,b)
tcT> bool ckmax(T& a, const T& b) {
    return a < b ? a = b, 1 : 0; 
}
ll gcd(ll a, ll b) {
    while (b) {
        tie(a, b) = mp(b, a % b);
    }
    return a;
}
const int N = 5e5+7;
int n, m;
vi g[N], tree[N];
int num[N], up[N];
int ptr = 1;
bool cut[N];
void dfs1(int u) {
    up[u] = num[u] = ptr++;
    trav (v, g[u]) {
        if (num[v]) {
            ckmin(up[u], num[v]);
        }
        else {
            tree[u].app(v);
            dfs1(v);
            if (up[v] >= num[u]) {
                cut[v] = 1;
            }
            ckmin(up[u], up[v]);
        }
    }
}
int cla;
vi T[N];
void dfs2(int u, int cur) {
    if (cur) {
        T[u].app(cur);
        T[cur].app(u);
    }
    trav (v, tree[u]) {
        if (cut[v]) {
            cla++;
            T[u].app(cla);
            T[cla].app(u);
            dfs2(v, cla);
        }
        else {
            dfs2(v, cur);
        }
    }
}
bool used[N];
int sub[N];
void dfs3(int u, int p) {
    used[u] = 1;
    sub[u] = u <= n;
    trav (v, T[u]) {
        if (v != p) {
            dfs3(v, u);
            sub[u] += sub[v];
        }
    }
}
int ans = 0;
void dfs4(int u, int p, int tot) {
    trav (v, T[u]) {
        if (v != p) {
            dfs4(v, u, tot);
            if (u <= n) {
                int comp = T[v].size();
                ans -= (comp - 1) * (tot - sub[v]) * (tot - sub[v] - 1);
            }
            else {
                int comp = T[u].size();
                ans -= (comp - 1) * sub[v] * (sub[v] - 1);
            }
        }
    }    
}
signed main() {
    #ifdef LOCAL
    #else
    #define endl '\n'
    ios_base::sync_with_stdio(0); cin.tie(0);
    #endif
    cin >> n >> m;
    FOR (i, m) {
        int u, v;
        cin >> u >> v;
        g[u].app(v); g[v].app(u);
    }
    cla = n;
    FORN (u, n) {
        if (!num[u]) {
            dfs1(u);
            dfs2(u, 0);
        }
        sort(all(T[u]));
        T[u].resize(unique(all(T[u])) - T[u].begin());
    }
    FORN (u, n) {
        if (!used[u]) {
            dfs3(u, u);
            ans += sub[u] * (sub[u] - 1) * (sub[u] - 2);
            dfs4(u, u, sub[u]);
        }
    }
    cout << ans << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 35448 KB Output is correct
2 Correct 21 ms 35532 KB Output is correct
3 Correct 19 ms 35568 KB Output is correct
4 Correct 19 ms 35564 KB Output is correct
5 Correct 22 ms 35552 KB Output is correct
6 Correct 19 ms 35520 KB Output is correct
7 Correct 20 ms 35532 KB Output is correct
8 Correct 19 ms 35564 KB Output is correct
9 Correct 20 ms 35568 KB Output is correct
10 Correct 19 ms 35548 KB Output is correct
11 Correct 19 ms 35532 KB Output is correct
12 Correct 19 ms 35532 KB Output is correct
13 Correct 19 ms 35532 KB Output is correct
14 Correct 19 ms 35508 KB Output is correct
15 Correct 19 ms 35560 KB Output is correct
16 Correct 19 ms 35532 KB Output is correct
17 Correct 19 ms 35532 KB Output is correct
18 Correct 19 ms 35552 KB Output is correct
19 Correct 19 ms 35636 KB Output is correct
20 Correct 19 ms 35524 KB Output is correct
21 Correct 20 ms 35532 KB Output is correct
22 Correct 19 ms 35492 KB Output is correct
23 Correct 20 ms 35496 KB Output is correct
24 Correct 19 ms 35556 KB Output is correct
25 Correct 19 ms 35532 KB Output is correct
26 Correct 19 ms 35536 KB Output is correct
27 Correct 20 ms 35608 KB Output is correct
28 Correct 19 ms 35520 KB Output is correct
29 Correct 19 ms 35472 KB Output is correct
30 Correct 19 ms 35660 KB Output is correct
31 Correct 19 ms 35512 KB Output is correct
32 Correct 19 ms 35532 KB Output is correct
33 Correct 21 ms 35468 KB Output is correct
34 Correct 19 ms 35448 KB Output is correct
35 Correct 19 ms 35556 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 35448 KB Output is correct
2 Correct 21 ms 35532 KB Output is correct
3 Correct 19 ms 35568 KB Output is correct
4 Correct 19 ms 35564 KB Output is correct
5 Correct 22 ms 35552 KB Output is correct
6 Correct 19 ms 35520 KB Output is correct
7 Correct 20 ms 35532 KB Output is correct
8 Correct 19 ms 35564 KB Output is correct
9 Correct 20 ms 35568 KB Output is correct
10 Correct 19 ms 35548 KB Output is correct
11 Correct 19 ms 35532 KB Output is correct
12 Correct 19 ms 35532 KB Output is correct
13 Correct 19 ms 35532 KB Output is correct
14 Correct 19 ms 35508 KB Output is correct
15 Correct 19 ms 35560 KB Output is correct
16 Correct 19 ms 35532 KB Output is correct
17 Correct 19 ms 35532 KB Output is correct
18 Correct 19 ms 35552 KB Output is correct
19 Correct 19 ms 35636 KB Output is correct
20 Correct 19 ms 35524 KB Output is correct
21 Correct 20 ms 35532 KB Output is correct
22 Correct 19 ms 35492 KB Output is correct
23 Correct 20 ms 35496 KB Output is correct
24 Correct 19 ms 35556 KB Output is correct
25 Correct 19 ms 35532 KB Output is correct
26 Correct 19 ms 35536 KB Output is correct
27 Correct 20 ms 35608 KB Output is correct
28 Correct 19 ms 35520 KB Output is correct
29 Correct 19 ms 35472 KB Output is correct
30 Correct 19 ms 35660 KB Output is correct
31 Correct 19 ms 35512 KB Output is correct
32 Correct 19 ms 35532 KB Output is correct
33 Correct 21 ms 35468 KB Output is correct
34 Correct 19 ms 35448 KB Output is correct
35 Correct 19 ms 35556 KB Output is correct
36 Correct 19 ms 35560 KB Output is correct
37 Correct 19 ms 35544 KB Output is correct
38 Correct 21 ms 35532 KB Output is correct
39 Correct 19 ms 35532 KB Output is correct
40 Correct 19 ms 35540 KB Output is correct
41 Correct 19 ms 35548 KB Output is correct
42 Correct 19 ms 35532 KB Output is correct
43 Correct 20 ms 35556 KB Output is correct
44 Correct 19 ms 35572 KB Output is correct
45 Correct 19 ms 35552 KB Output is correct
46 Correct 23 ms 35532 KB Output is correct
47 Correct 23 ms 35548 KB Output is correct
48 Correct 19 ms 35552 KB Output is correct
49 Correct 22 ms 35556 KB Output is correct
50 Correct 22 ms 35596 KB Output is correct
51 Correct 19 ms 35472 KB Output is correct
52 Correct 19 ms 35568 KB Output is correct
53 Correct 21 ms 35540 KB Output is correct
54 Correct 19 ms 35496 KB Output is correct
55 Correct 19 ms 35516 KB Output is correct
56 Correct 19 ms 35584 KB Output is correct
57 Correct 20 ms 35496 KB Output is correct
58 Correct 19 ms 35524 KB Output is correct
59 Correct 19 ms 35532 KB Output is correct
60 Correct 19 ms 35532 KB Output is correct
61 Correct 20 ms 35584 KB Output is correct
62 Correct 19 ms 35500 KB Output is correct
63 Correct 19 ms 35532 KB Output is correct
64 Correct 19 ms 35476 KB Output is correct
65 Correct 20 ms 35552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 121 ms 55964 KB Output is correct
2 Correct 119 ms 57272 KB Output is correct
3 Correct 146 ms 56324 KB Output is correct
4 Correct 126 ms 56120 KB Output is correct
5 Correct 134 ms 53900 KB Output is correct
6 Correct 163 ms 55468 KB Output is correct
7 Correct 154 ms 53888 KB Output is correct
8 Correct 136 ms 54208 KB Output is correct
9 Correct 139 ms 52660 KB Output is correct
10 Correct 145 ms 52800 KB Output is correct
11 Correct 115 ms 49732 KB Output is correct
12 Correct 114 ms 49604 KB Output is correct
13 Correct 105 ms 49096 KB Output is correct
14 Correct 111 ms 48752 KB Output is correct
15 Correct 94 ms 47160 KB Output is correct
16 Correct 85 ms 46896 KB Output is correct
17 Correct 23 ms 38164 KB Output is correct
18 Correct 23 ms 38104 KB Output is correct
19 Correct 23 ms 38044 KB Output is correct
20 Correct 23 ms 38108 KB Output is correct
21 Correct 24 ms 38028 KB Output is correct
22 Correct 23 ms 38092 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 35736 KB Output is correct
2 Correct 20 ms 35604 KB Output is correct
3 Correct 21 ms 35720 KB Output is correct
4 Correct 20 ms 35708 KB Output is correct
5 Correct 21 ms 35772 KB Output is correct
6 Correct 22 ms 35772 KB Output is correct
7 Correct 20 ms 35796 KB Output is correct
8 Correct 20 ms 35684 KB Output is correct
9 Correct 21 ms 35660 KB Output is correct
10 Correct 21 ms 35660 KB Output is correct
11 Correct 21 ms 35740 KB Output is correct
12 Correct 20 ms 35680 KB Output is correct
13 Correct 20 ms 35660 KB Output is correct
14 Correct 22 ms 35668 KB Output is correct
15 Correct 21 ms 35660 KB Output is correct
16 Correct 20 ms 35604 KB Output is correct
17 Correct 20 ms 35692 KB Output is correct
18 Correct 20 ms 35660 KB Output is correct
19 Correct 19 ms 35748 KB Output is correct
20 Correct 19 ms 35716 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 128 ms 51412 KB Output is correct
2 Correct 131 ms 51456 KB Output is correct
3 Correct 134 ms 51436 KB Output is correct
4 Correct 159 ms 51492 KB Output is correct
5 Correct 134 ms 51396 KB Output is correct
6 Correct 160 ms 58216 KB Output is correct
7 Correct 158 ms 56024 KB Output is correct
8 Correct 175 ms 54772 KB Output is correct
9 Correct 160 ms 53664 KB Output is correct
10 Correct 140 ms 51476 KB Output is correct
11 Correct 141 ms 51476 KB Output is correct
12 Correct 140 ms 51512 KB Output is correct
13 Correct 132 ms 51396 KB Output is correct
14 Correct 126 ms 50516 KB Output is correct
15 Correct 123 ms 49612 KB Output is correct
16 Correct 82 ms 46208 KB Output is correct
17 Correct 93 ms 50664 KB Output is correct
18 Correct 90 ms 50712 KB Output is correct
19 Correct 91 ms 50984 KB Output is correct
20 Correct 147 ms 50732 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 23 ms 35620 KB Output is correct
2 Correct 19 ms 35660 KB Output is correct
3 Correct 21 ms 35648 KB Output is correct
4 Correct 20 ms 35668 KB Output is correct
5 Correct 20 ms 35692 KB Output is correct
6 Correct 20 ms 35720 KB Output is correct
7 Correct 20 ms 35604 KB Output is correct
8 Correct 19 ms 35660 KB Output is correct
9 Correct 20 ms 35652 KB Output is correct
10 Correct 19 ms 35660 KB Output is correct
11 Correct 20 ms 35664 KB Output is correct
12 Correct 21 ms 35904 KB Output is correct
13 Correct 24 ms 35660 KB Output is correct
14 Correct 20 ms 35744 KB Output is correct
15 Correct 21 ms 35664 KB Output is correct
16 Correct 21 ms 35700 KB Output is correct
17 Correct 20 ms 35696 KB Output is correct
18 Correct 21 ms 35660 KB Output is correct
19 Correct 20 ms 35660 KB Output is correct
20 Correct 20 ms 35664 KB Output is correct
21 Correct 20 ms 35688 KB Output is correct
22 Correct 20 ms 35660 KB Output is correct
23 Correct 21 ms 35752 KB Output is correct
24 Correct 20 ms 35708 KB Output is correct
25 Correct 22 ms 35556 KB Output is correct
26 Correct 19 ms 35544 KB Output is correct
27 Correct 20 ms 35520 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 135 ms 51400 KB Output is correct
2 Correct 142 ms 51424 KB Output is correct
3 Correct 149 ms 51412 KB Output is correct
4 Correct 132 ms 50548 KB Output is correct
5 Correct 135 ms 51116 KB Output is correct
6 Correct 133 ms 50752 KB Output is correct
7 Correct 130 ms 50592 KB Output is correct
8 Correct 124 ms 50308 KB Output is correct
9 Correct 111 ms 50200 KB Output is correct
10 Correct 115 ms 50132 KB Output is correct
11 Correct 149 ms 50028 KB Output is correct
12 Correct 115 ms 50044 KB Output is correct
13 Correct 111 ms 50196 KB Output is correct
14 Correct 116 ms 51648 KB Output is correct
15 Correct 162 ms 57472 KB Output is correct
16 Correct 159 ms 55896 KB Output is correct
17 Correct 158 ms 56292 KB Output is correct
18 Correct 164 ms 54956 KB Output is correct
19 Correct 147 ms 52172 KB Output is correct
20 Correct 144 ms 52120 KB Output is correct
21 Correct 153 ms 52136 KB Output is correct
22 Correct 131 ms 51012 KB Output is correct
23 Correct 124 ms 50108 KB Output is correct
24 Correct 140 ms 52500 KB Output is correct
25 Correct 144 ms 52520 KB Output is correct
26 Correct 131 ms 52116 KB Output is correct
27 Correct 135 ms 52220 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 35448 KB Output is correct
2 Correct 21 ms 35532 KB Output is correct
3 Correct 19 ms 35568 KB Output is correct
4 Correct 19 ms 35564 KB Output is correct
5 Correct 22 ms 35552 KB Output is correct
6 Correct 19 ms 35520 KB Output is correct
7 Correct 20 ms 35532 KB Output is correct
8 Correct 19 ms 35564 KB Output is correct
9 Correct 20 ms 35568 KB Output is correct
10 Correct 19 ms 35548 KB Output is correct
11 Correct 19 ms 35532 KB Output is correct
12 Correct 19 ms 35532 KB Output is correct
13 Correct 19 ms 35532 KB Output is correct
14 Correct 19 ms 35508 KB Output is correct
15 Correct 19 ms 35560 KB Output is correct
16 Correct 19 ms 35532 KB Output is correct
17 Correct 19 ms 35532 KB Output is correct
18 Correct 19 ms 35552 KB Output is correct
19 Correct 19 ms 35636 KB Output is correct
20 Correct 19 ms 35524 KB Output is correct
21 Correct 20 ms 35532 KB Output is correct
22 Correct 19 ms 35492 KB Output is correct
23 Correct 20 ms 35496 KB Output is correct
24 Correct 19 ms 35556 KB Output is correct
25 Correct 19 ms 35532 KB Output is correct
26 Correct 19 ms 35536 KB Output is correct
27 Correct 20 ms 35608 KB Output is correct
28 Correct 19 ms 35520 KB Output is correct
29 Correct 19 ms 35472 KB Output is correct
30 Correct 19 ms 35660 KB Output is correct
31 Correct 19 ms 35512 KB Output is correct
32 Correct 19 ms 35532 KB Output is correct
33 Correct 21 ms 35468 KB Output is correct
34 Correct 19 ms 35448 KB Output is correct
35 Correct 19 ms 35556 KB Output is correct
36 Correct 19 ms 35560 KB Output is correct
37 Correct 19 ms 35544 KB Output is correct
38 Correct 21 ms 35532 KB Output is correct
39 Correct 19 ms 35532 KB Output is correct
40 Correct 19 ms 35540 KB Output is correct
41 Correct 19 ms 35548 KB Output is correct
42 Correct 19 ms 35532 KB Output is correct
43 Correct 20 ms 35556 KB Output is correct
44 Correct 19 ms 35572 KB Output is correct
45 Correct 19 ms 35552 KB Output is correct
46 Correct 23 ms 35532 KB Output is correct
47 Correct 23 ms 35548 KB Output is correct
48 Correct 19 ms 35552 KB Output is correct
49 Correct 22 ms 35556 KB Output is correct
50 Correct 22 ms 35596 KB Output is correct
51 Correct 19 ms 35472 KB Output is correct
52 Correct 19 ms 35568 KB Output is correct
53 Correct 21 ms 35540 KB Output is correct
54 Correct 19 ms 35496 KB Output is correct
55 Correct 19 ms 35516 KB Output is correct
56 Correct 19 ms 35584 KB Output is correct
57 Correct 20 ms 35496 KB Output is correct
58 Correct 19 ms 35524 KB Output is correct
59 Correct 19 ms 35532 KB Output is correct
60 Correct 19 ms 35532 KB Output is correct
61 Correct 20 ms 35584 KB Output is correct
62 Correct 19 ms 35500 KB Output is correct
63 Correct 19 ms 35532 KB Output is correct
64 Correct 19 ms 35476 KB Output is correct
65 Correct 20 ms 35552 KB Output is correct
66 Correct 21 ms 35572 KB Output is correct
67 Correct 20 ms 35660 KB Output is correct
68 Correct 21 ms 35692 KB Output is correct
69 Correct 20 ms 35664 KB Output is correct
70 Correct 21 ms 35688 KB Output is correct
71 Correct 20 ms 35684 KB Output is correct
72 Correct 20 ms 35612 KB Output is correct
73 Correct 21 ms 35620 KB Output is correct
74 Correct 20 ms 35660 KB Output is correct
75 Correct 24 ms 35660 KB Output is correct
76 Correct 19 ms 35588 KB Output is correct
77 Correct 24 ms 35652 KB Output is correct
78 Correct 20 ms 35652 KB Output is correct
79 Correct 20 ms 35692 KB Output is correct
80 Correct 20 ms 35688 KB Output is correct
81 Correct 20 ms 35708 KB Output is correct
82 Correct 20 ms 35708 KB Output is correct
83 Correct 20 ms 35716 KB Output is correct
84 Correct 21 ms 35660 KB Output is correct
85 Correct 21 ms 35716 KB Output is correct
86 Correct 21 ms 35712 KB Output is correct
87 Correct 20 ms 35660 KB Output is correct
88 Correct 20 ms 35640 KB Output is correct
89 Correct 21 ms 35660 KB Output is correct
90 Correct 20 ms 35692 KB Output is correct
91 Correct 21 ms 35696 KB Output is correct
92 Correct 20 ms 35660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 35448 KB Output is correct
2 Correct 21 ms 35532 KB Output is correct
3 Correct 19 ms 35568 KB Output is correct
4 Correct 19 ms 35564 KB Output is correct
5 Correct 22 ms 35552 KB Output is correct
6 Correct 19 ms 35520 KB Output is correct
7 Correct 20 ms 35532 KB Output is correct
8 Correct 19 ms 35564 KB Output is correct
9 Correct 20 ms 35568 KB Output is correct
10 Correct 19 ms 35548 KB Output is correct
11 Correct 19 ms 35532 KB Output is correct
12 Correct 19 ms 35532 KB Output is correct
13 Correct 19 ms 35532 KB Output is correct
14 Correct 19 ms 35508 KB Output is correct
15 Correct 19 ms 35560 KB Output is correct
16 Correct 19 ms 35532 KB Output is correct
17 Correct 19 ms 35532 KB Output is correct
18 Correct 19 ms 35552 KB Output is correct
19 Correct 19 ms 35636 KB Output is correct
20 Correct 19 ms 35524 KB Output is correct
21 Correct 20 ms 35532 KB Output is correct
22 Correct 19 ms 35492 KB Output is correct
23 Correct 20 ms 35496 KB Output is correct
24 Correct 19 ms 35556 KB Output is correct
25 Correct 19 ms 35532 KB Output is correct
26 Correct 19 ms 35536 KB Output is correct
27 Correct 20 ms 35608 KB Output is correct
28 Correct 19 ms 35520 KB Output is correct
29 Correct 19 ms 35472 KB Output is correct
30 Correct 19 ms 35660 KB Output is correct
31 Correct 19 ms 35512 KB Output is correct
32 Correct 19 ms 35532 KB Output is correct
33 Correct 21 ms 35468 KB Output is correct
34 Correct 19 ms 35448 KB Output is correct
35 Correct 19 ms 35556 KB Output is correct
36 Correct 19 ms 35560 KB Output is correct
37 Correct 19 ms 35544 KB Output is correct
38 Correct 21 ms 35532 KB Output is correct
39 Correct 19 ms 35532 KB Output is correct
40 Correct 19 ms 35540 KB Output is correct
41 Correct 19 ms 35548 KB Output is correct
42 Correct 19 ms 35532 KB Output is correct
43 Correct 20 ms 35556 KB Output is correct
44 Correct 19 ms 35572 KB Output is correct
45 Correct 19 ms 35552 KB Output is correct
46 Correct 23 ms 35532 KB Output is correct
47 Correct 23 ms 35548 KB Output is correct
48 Correct 19 ms 35552 KB Output is correct
49 Correct 22 ms 35556 KB Output is correct
50 Correct 22 ms 35596 KB Output is correct
51 Correct 19 ms 35472 KB Output is correct
52 Correct 19 ms 35568 KB Output is correct
53 Correct 21 ms 35540 KB Output is correct
54 Correct 19 ms 35496 KB Output is correct
55 Correct 19 ms 35516 KB Output is correct
56 Correct 19 ms 35584 KB Output is correct
57 Correct 20 ms 35496 KB Output is correct
58 Correct 19 ms 35524 KB Output is correct
59 Correct 19 ms 35532 KB Output is correct
60 Correct 19 ms 35532 KB Output is correct
61 Correct 20 ms 35584 KB Output is correct
62 Correct 19 ms 35500 KB Output is correct
63 Correct 19 ms 35532 KB Output is correct
64 Correct 19 ms 35476 KB Output is correct
65 Correct 20 ms 35552 KB Output is correct
66 Correct 121 ms 55964 KB Output is correct
67 Correct 119 ms 57272 KB Output is correct
68 Correct 146 ms 56324 KB Output is correct
69 Correct 126 ms 56120 KB Output is correct
70 Correct 134 ms 53900 KB Output is correct
71 Correct 163 ms 55468 KB Output is correct
72 Correct 154 ms 53888 KB Output is correct
73 Correct 136 ms 54208 KB Output is correct
74 Correct 139 ms 52660 KB Output is correct
75 Correct 145 ms 52800 KB Output is correct
76 Correct 115 ms 49732 KB Output is correct
77 Correct 114 ms 49604 KB Output is correct
78 Correct 105 ms 49096 KB Output is correct
79 Correct 111 ms 48752 KB Output is correct
80 Correct 94 ms 47160 KB Output is correct
81 Correct 85 ms 46896 KB Output is correct
82 Correct 23 ms 38164 KB Output is correct
83 Correct 23 ms 38104 KB Output is correct
84 Correct 23 ms 38044 KB Output is correct
85 Correct 23 ms 38108 KB Output is correct
86 Correct 24 ms 38028 KB Output is correct
87 Correct 23 ms 38092 KB Output is correct
88 Correct 21 ms 35736 KB Output is correct
89 Correct 20 ms 35604 KB Output is correct
90 Correct 21 ms 35720 KB Output is correct
91 Correct 20 ms 35708 KB Output is correct
92 Correct 21 ms 35772 KB Output is correct
93 Correct 22 ms 35772 KB Output is correct
94 Correct 20 ms 35796 KB Output is correct
95 Correct 20 ms 35684 KB Output is correct
96 Correct 21 ms 35660 KB Output is correct
97 Correct 21 ms 35660 KB Output is correct
98 Correct 21 ms 35740 KB Output is correct
99 Correct 20 ms 35680 KB Output is correct
100 Correct 20 ms 35660 KB Output is correct
101 Correct 22 ms 35668 KB Output is correct
102 Correct 21 ms 35660 KB Output is correct
103 Correct 20 ms 35604 KB Output is correct
104 Correct 20 ms 35692 KB Output is correct
105 Correct 20 ms 35660 KB Output is correct
106 Correct 19 ms 35748 KB Output is correct
107 Correct 19 ms 35716 KB Output is correct
108 Correct 128 ms 51412 KB Output is correct
109 Correct 131 ms 51456 KB Output is correct
110 Correct 134 ms 51436 KB Output is correct
111 Correct 159 ms 51492 KB Output is correct
112 Correct 134 ms 51396 KB Output is correct
113 Correct 160 ms 58216 KB Output is correct
114 Correct 158 ms 56024 KB Output is correct
115 Correct 175 ms 54772 KB Output is correct
116 Correct 160 ms 53664 KB Output is correct
117 Correct 140 ms 51476 KB Output is correct
118 Correct 141 ms 51476 KB Output is correct
119 Correct 140 ms 51512 KB Output is correct
120 Correct 132 ms 51396 KB Output is correct
121 Correct 126 ms 50516 KB Output is correct
122 Correct 123 ms 49612 KB Output is correct
123 Correct 82 ms 46208 KB Output is correct
124 Correct 93 ms 50664 KB Output is correct
125 Correct 90 ms 50712 KB Output is correct
126 Correct 91 ms 50984 KB Output is correct
127 Correct 147 ms 50732 KB Output is correct
128 Correct 23 ms 35620 KB Output is correct
129 Correct 19 ms 35660 KB Output is correct
130 Correct 21 ms 35648 KB Output is correct
131 Correct 20 ms 35668 KB Output is correct
132 Correct 20 ms 35692 KB Output is correct
133 Correct 20 ms 35720 KB Output is correct
134 Correct 20 ms 35604 KB Output is correct
135 Correct 19 ms 35660 KB Output is correct
136 Correct 20 ms 35652 KB Output is correct
137 Correct 19 ms 35660 KB Output is correct
138 Correct 20 ms 35664 KB Output is correct
139 Correct 21 ms 35904 KB Output is correct
140 Correct 24 ms 35660 KB Output is correct
141 Correct 20 ms 35744 KB Output is correct
142 Correct 21 ms 35664 KB Output is correct
143 Correct 21 ms 35700 KB Output is correct
144 Correct 20 ms 35696 KB Output is correct
145 Correct 21 ms 35660 KB Output is correct
146 Correct 20 ms 35660 KB Output is correct
147 Correct 20 ms 35664 KB Output is correct
148 Correct 20 ms 35688 KB Output is correct
149 Correct 20 ms 35660 KB Output is correct
150 Correct 21 ms 35752 KB Output is correct
151 Correct 20 ms 35708 KB Output is correct
152 Correct 22 ms 35556 KB Output is correct
153 Correct 19 ms 35544 KB Output is correct
154 Correct 20 ms 35520 KB Output is correct
155 Correct 135 ms 51400 KB Output is correct
156 Correct 142 ms 51424 KB Output is correct
157 Correct 149 ms 51412 KB Output is correct
158 Correct 132 ms 50548 KB Output is correct
159 Correct 135 ms 51116 KB Output is correct
160 Correct 133 ms 50752 KB Output is correct
161 Correct 130 ms 50592 KB Output is correct
162 Correct 124 ms 50308 KB Output is correct
163 Correct 111 ms 50200 KB Output is correct
164 Correct 115 ms 50132 KB Output is correct
165 Correct 149 ms 50028 KB Output is correct
166 Correct 115 ms 50044 KB Output is correct
167 Correct 111 ms 50196 KB Output is correct
168 Correct 116 ms 51648 KB Output is correct
169 Correct 162 ms 57472 KB Output is correct
170 Correct 159 ms 55896 KB Output is correct
171 Correct 158 ms 56292 KB Output is correct
172 Correct 164 ms 54956 KB Output is correct
173 Correct 147 ms 52172 KB Output is correct
174 Correct 144 ms 52120 KB Output is correct
175 Correct 153 ms 52136 KB Output is correct
176 Correct 131 ms 51012 KB Output is correct
177 Correct 124 ms 50108 KB Output is correct
178 Correct 140 ms 52500 KB Output is correct
179 Correct 144 ms 52520 KB Output is correct
180 Correct 131 ms 52116 KB Output is correct
181 Correct 135 ms 52220 KB Output is correct
182 Correct 21 ms 35572 KB Output is correct
183 Correct 20 ms 35660 KB Output is correct
184 Correct 21 ms 35692 KB Output is correct
185 Correct 20 ms 35664 KB Output is correct
186 Correct 21 ms 35688 KB Output is correct
187 Correct 20 ms 35684 KB Output is correct
188 Correct 20 ms 35612 KB Output is correct
189 Correct 21 ms 35620 KB Output is correct
190 Correct 20 ms 35660 KB Output is correct
191 Correct 24 ms 35660 KB Output is correct
192 Correct 19 ms 35588 KB Output is correct
193 Correct 24 ms 35652 KB Output is correct
194 Correct 20 ms 35652 KB Output is correct
195 Correct 20 ms 35692 KB Output is correct
196 Correct 20 ms 35688 KB Output is correct
197 Correct 20 ms 35708 KB Output is correct
198 Correct 20 ms 35708 KB Output is correct
199 Correct 20 ms 35716 KB Output is correct
200 Correct 21 ms 35660 KB Output is correct
201 Correct 21 ms 35716 KB Output is correct
202 Correct 21 ms 35712 KB Output is correct
203 Correct 20 ms 35660 KB Output is correct
204 Correct 20 ms 35640 KB Output is correct
205 Correct 21 ms 35660 KB Output is correct
206 Correct 20 ms 35692 KB Output is correct
207 Correct 21 ms 35696 KB Output is correct
208 Correct 20 ms 35660 KB Output is correct
209 Correct 23 ms 37988 KB Output is correct
210 Correct 83 ms 46180 KB Output is correct
211 Correct 129 ms 51244 KB Output is correct
212 Correct 146 ms 54696 KB Output is correct
213 Correct 194 ms 57464 KB Output is correct
214 Correct 80 ms 50344 KB Output is correct
215 Correct 84 ms 50588 KB Output is correct
216 Correct 141 ms 52616 KB Output is correct
217 Correct 136 ms 51652 KB Output is correct
218 Correct 131 ms 50336 KB Output is correct
219 Correct 115 ms 49988 KB Output is correct
220 Correct 110 ms 50020 KB Output is correct
221 Correct 115 ms 49940 KB Output is correct
222 Correct 127 ms 50756 KB Output is correct
223 Correct 150 ms 53660 KB Output is correct
224 Correct 140 ms 52960 KB Output is correct
225 Correct 130 ms 51396 KB Output is correct
226 Correct 139 ms 51524 KB Output is correct
227 Correct 135 ms 51476 KB Output is correct
228 Correct 129 ms 50628 KB Output is correct
229 Correct 118 ms 49948 KB Output is correct
230 Correct 134 ms 51404 KB Output is correct
231 Correct 139 ms 51692 KB Output is correct