답안 #995033

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
995033 2024-06-08T11:06:41 Z maomao90 항공 노선도 (JOI18_airline) C++17
100 / 100
445 ms 40844 KB
// Hallelujah, praise the one who set me free
// Hallelujah, death has lost its grip on me
// You have broken every chain, There's salvation in your name
// Jesus Christ, my living hope
#include <bits/stdc++.h> 
#include "Alicelib.h"
using namespace std;

#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define RREP(i, s, e) for (int i = (s); i >= (e); i--)
template <class T>
inline bool mnto(T& a, T b) {return b < a ? a = b, 1 : 0;}
template <class T>
inline bool mxto(T& a, T b) {return a < b ? a = b, 1: 0;}

typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef tuple<int, int, int> iii;
#define ALL(_a) _a.begin(), _a.end()
#define SZ(_a) (int) _a.size()
#define pb push_back
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
typedef vector<iii> viii;

#ifndef DEBUG
#define cerr if (0) cerr
#endif

const int INF = 1000000005;
const ll LINF = 1000000000000000005ll;
const int MAXN = 1100;
const int MAXD = 12;

namespace {
    int n, m;
    bool g[MAXN][MAXN], h[MAXN][MAXN];

    inline void add(int u, int v) {
        h[u][v] = h[v][u] = 1;
    }
    inline void answer() {
        vii eg;
        REP (i, 0, m) {
            REP (j, i + 1, m) {
                if (h[i][j]) {
                    eg.pb({i, j});
                }
            }
        }
        InitG(m, SZ(eg));
        REP (i, 0, SZ(eg)) {
            MakeG(i, eg[i].FI, eg[i].SE);
        }
    }
}

void Alice(int N, int E, int A[], int B[]) {
    n = N;
    REP (i, 0, E) {
        g[A[i]][B[i]] = g[B[i]][A[i]] = 1;
    }
    REP (i, 0, n) {
        REP (j, 0, n) {
            h[i][j] = g[i][j];
        }
    }
    if (n <= 2) {
        m = n;
        answer();
        return;
    }
    int lg = 32 - __builtin_clz(n - 1);
    m = n + min(lg + 3, MAXD);
    REP (l, 0, lg) {
        REP (i, 0, n) {
            if (i >> l & 1) {
                add(n + l, i);
            }
        }
        if (l) {
            add(n + l, n + l - 1);
        }
    }
    if (lg == MAXD - 2) {
        REP (i, n, n + lg + 1) {
            add(n + lg, i);
        }
        REP (i, 0, n + lg) {
            add(n + lg + 1, i);
        }
    } else {
        add(n + lg, n + lg - 1);
        REP (i, n, n + lg + 1) {
            add(n + lg + 1, i);
        }
        REP (i, 0, n + lg + 1) {
            add(n + lg + 2, i);
        }
    }
    answer();
}
// Hallelujah, praise the one who set me free
// Hallelujah, death has lost its grip on me
// You have broken every chain, There's salvation in your name
// Jesus Christ, my living hope
#include <bits/stdc++.h> 
#include "Boblib.h"
using namespace std;

#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define RREP(i, s, e) for (int i = (s); i >= (e); i--)
template <class T>
inline bool mnto(T& a, T b) {return b < a ? a = b, 1 : 0;}
template <class T>
inline bool mxto(T& a, T b) {return a < b ? a = b, 1: 0;}

typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef tuple<int, int, int> iii;
#define ALL(_a) _a.begin(), _a.end()
#define SZ(_a) (int) _a.size()
#define pb push_back
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
typedef vector<iii> viii;

#ifndef DEBUG
#define cerr if (0) cerr
#endif

const int INF = 1000000005;
const ll LINF = 1000000000000000005ll;
const int MAXN = 1100;
const int MAXD = 12;

namespace {
    int n, m;
    bool g[MAXN][MAXN], h[MAXN][MAXN];

    inline void add(int u, int v) {
        h[u][v] = h[v][u] = 1;
    }

    int deg[MAXN];
    bool isb[MAXN], vis[MAXN];
    int id[MAXN];
    inline bool rmv(int u, int v) {
        if (!g[u][v]) {
            return 0;
        }
        g[u][v] = g[v][u] = 0;
        deg[u]--; deg[v]--;
        return 1;
    }
    inline void answer() {
        vii eg;
        REP (i, 0, m) {
            REP (j, i + 1, m) {
                if (h[i][j]) {
                    eg.pb({i, j});
                }
            }
        }
        InitMap(m, SZ(eg));
        REP (i, 0, SZ(eg)) {
            MakeMap(eg[i].FI, eg[i].SE);
        }
    }
}

void Bob(int V, int U, int C[], int D[]) {
    REP (i, 0, U) {
        g[C[i]][D[i]] = g[D[i]][C[i]] = 1;
    }
    n = V;
    if (n <= 2) {
        m = n;
        REP (i, 0, n) {
            REP (j, 0, n) {
                h[i][j] = g[i][j];
            }
        }
        answer();
        return;
    }
    REP (x, 1, MAXN) {
        int lg = 32 - __builtin_clz(x - 1);
        if (x + min(MAXD, lg + 3) == n) {
            m = x;
            break;
        }
    }
    assert(m);
    int lg = 32 - __builtin_clz(m - 1);
    ii mx = {0, 0};
    REP (i, 0, n) {
        REP (j, 0, n) {
            deg[i] += g[i][j];
        }
        mxto(mx, {deg[i], i});
    }
    assert(mx.FI == n - 2);
    int r = -1;
    REP (i, 0, n) {
        if (i == mx.SE) {
            continue;
        }
        if (!rmv(mx.SE, i)) {
            assert(r == -1);
            r = i;
        }
    }
    REP (i, 0, n) {
        isb[i] = rmv(r, i);
    }
    vi bits;
    if (lg == MAXD - 2) {
        ii mn = {INF, INF};
        REP (i, 0, n) {
            if (!isb[i]) {
                continue;
            }
            int bdeg = 0;
            REP (j, 0, n) {
                bdeg += isb[j] && g[i][j];
            }
            if (bdeg == 1) {
                mnto(mn, {deg[i], i});
            }
        }
        assert(mn.SE != INF);
        bits.pb(mn.SE);
        vis[mn.SE] = 1;
    } else {
        int e = -1;
        REP (i, 0, n) {
            if (isb[i] && deg[i] == 1) {
                REP (j, 0, n) {
                    if (isb[j] && g[i][j]) {
                        e = i;
                        break;
                    }
                }
                if (e != -1) {
                    break;
                }
            }
        }
        assert(e != -1);
        assert(deg[e] == 1);
        REP (i, 0, n) {
            if (rmv(e, i)) {
                bits.pb(i);
                vis[i] = 1;
            }
        }
    }
    while (SZ(bits) < lg) {
        REP (i, 0, n) {
            if (vis[i] || !isb[i]) {
                continue;
            }
            if (rmv(bits.back(), i)) {
                vis[i] = 1;
                bits.pb(i);
                break;
            }
        }
    }
    reverse(ALL(bits));
    REP (l, 0, lg) {
        REP (i, 0, n) {
            id[i] |= rmv(bits[l], i) << l;
        }
    }
    REP (i, 0, n) {
        REP (j, 0, n) {
            if (g[i][j]) {
                assert(id[i] < m && id[j] < m);
                add(id[i], id[j]);
            }
        }
    }
    answer();
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 19712 KB Output is correct
2 Correct 2 ms 19716 KB Output is correct
3 Correct 2 ms 19716 KB Output is correct
4 Correct 3 ms 17664 KB Output is correct
5 Correct 3 ms 19712 KB Output is correct
6 Correct 3 ms 19716 KB Output is correct
7 Correct 2 ms 19716 KB Output is correct
8 Correct 2 ms 19716 KB Output is correct
9 Correct 3 ms 19708 KB Output is correct
10 Correct 3 ms 17676 KB Output is correct
11 Correct 3 ms 19712 KB Output is correct
12 Correct 3 ms 19712 KB Output is correct
13 Correct 2 ms 19716 KB Output is correct
14 Correct 3 ms 19716 KB Output is correct
15 Correct 3 ms 19716 KB Output is correct
16 Correct 3 ms 19712 KB Output is correct
17 Correct 3 ms 19716 KB Output is correct
18 Correct 3 ms 19716 KB Output is correct
19 Correct 3 ms 19712 KB Output is correct
20 Correct 3 ms 19716 KB Output is correct
21 Correct 2 ms 19720 KB Output is correct
22 Correct 3 ms 19716 KB Output is correct
23 Correct 2 ms 19716 KB Output is correct
24 Correct 2 ms 17676 KB Output is correct
25 Correct 3 ms 19716 KB Output is correct
26 Correct 3 ms 19712 KB Output is correct
27 Correct 3 ms 19716 KB Output is correct
28 Correct 2 ms 19712 KB Output is correct
29 Correct 2 ms 19716 KB Output is correct
30 Correct 2 ms 17672 KB Output is correct
31 Correct 3 ms 17668 KB Output is correct
32 Correct 3 ms 17668 KB Output is correct
33 Correct 3 ms 17668 KB Output is correct
34 Correct 2 ms 17668 KB Output is correct
35 Correct 3 ms 17664 KB Output is correct
36 Correct 2 ms 19716 KB Output is correct
37 Correct 3 ms 19716 KB Output is correct
38 Correct 3 ms 19712 KB Output is correct
39 Correct 3 ms 19716 KB Output is correct
40 Correct 2 ms 19716 KB Output is correct
41 Correct 2 ms 19712 KB Output is correct
42 Correct 3 ms 19724 KB Output is correct
43 Correct 3 ms 19716 KB Output is correct
44 Correct 3 ms 17668 KB Output is correct
45 Correct 3 ms 17668 KB Output is correct
46 Correct 2 ms 19716 KB Output is correct
47 Correct 2 ms 19708 KB Output is correct
48 Correct 3 ms 19716 KB Output is correct
49 Correct 2 ms 19724 KB Output is correct
50 Correct 3 ms 17668 KB Output is correct
51 Correct 1 ms 13580 KB Output is correct
52 Correct 3 ms 19724 KB Output is correct
53 Correct 2 ms 13572 KB Output is correct
54 Correct 3 ms 19712 KB Output is correct
55 Correct 3 ms 19708 KB Output is correct
56 Correct 3 ms 19716 KB Output is correct
57 Correct 2 ms 19708 KB Output is correct
58 Correct 2 ms 19712 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 19712 KB Output is correct
2 Correct 2 ms 19716 KB Output is correct
3 Correct 2 ms 19716 KB Output is correct
4 Correct 3 ms 17664 KB Output is correct
5 Correct 3 ms 19712 KB Output is correct
6 Correct 3 ms 19716 KB Output is correct
7 Correct 2 ms 19716 KB Output is correct
8 Correct 2 ms 19716 KB Output is correct
9 Correct 3 ms 19708 KB Output is correct
10 Correct 3 ms 17676 KB Output is correct
11 Correct 3 ms 19712 KB Output is correct
12 Correct 3 ms 19712 KB Output is correct
13 Correct 2 ms 19716 KB Output is correct
14 Correct 3 ms 19716 KB Output is correct
15 Correct 3 ms 19716 KB Output is correct
16 Correct 3 ms 19712 KB Output is correct
17 Correct 3 ms 19716 KB Output is correct
18 Correct 3 ms 19716 KB Output is correct
19 Correct 3 ms 19712 KB Output is correct
20 Correct 3 ms 19716 KB Output is correct
21 Correct 2 ms 19720 KB Output is correct
22 Correct 3 ms 19716 KB Output is correct
23 Correct 2 ms 19716 KB Output is correct
24 Correct 2 ms 17676 KB Output is correct
25 Correct 3 ms 19716 KB Output is correct
26 Correct 3 ms 19712 KB Output is correct
27 Correct 3 ms 19716 KB Output is correct
28 Correct 2 ms 19712 KB Output is correct
29 Correct 2 ms 19716 KB Output is correct
30 Correct 2 ms 17672 KB Output is correct
31 Correct 3 ms 17668 KB Output is correct
32 Correct 3 ms 17668 KB Output is correct
33 Correct 3 ms 17668 KB Output is correct
34 Correct 2 ms 17668 KB Output is correct
35 Correct 3 ms 17664 KB Output is correct
36 Correct 2 ms 19716 KB Output is correct
37 Correct 3 ms 19716 KB Output is correct
38 Correct 3 ms 19712 KB Output is correct
39 Correct 3 ms 19716 KB Output is correct
40 Correct 2 ms 19716 KB Output is correct
41 Correct 2 ms 19712 KB Output is correct
42 Correct 3 ms 19724 KB Output is correct
43 Correct 3 ms 19716 KB Output is correct
44 Correct 3 ms 17668 KB Output is correct
45 Correct 3 ms 17668 KB Output is correct
46 Correct 2 ms 19716 KB Output is correct
47 Correct 2 ms 19708 KB Output is correct
48 Correct 3 ms 19716 KB Output is correct
49 Correct 2 ms 19724 KB Output is correct
50 Correct 3 ms 17668 KB Output is correct
51 Correct 1 ms 13580 KB Output is correct
52 Correct 3 ms 19724 KB Output is correct
53 Correct 2 ms 13572 KB Output is correct
54 Correct 3 ms 19712 KB Output is correct
55 Correct 3 ms 19708 KB Output is correct
56 Correct 3 ms 19716 KB Output is correct
57 Correct 2 ms 19708 KB Output is correct
58 Correct 2 ms 19712 KB Output is correct
59 Correct 3 ms 19720 KB Output is correct
60 Correct 3 ms 19716 KB Output is correct
61 Correct 2 ms 19724 KB Output is correct
62 Correct 3 ms 19716 KB Output is correct
63 Correct 3 ms 19724 KB Output is correct
64 Correct 3 ms 19716 KB Output is correct
65 Correct 3 ms 19720 KB Output is correct
66 Correct 3 ms 19712 KB Output is correct
67 Correct 3 ms 19716 KB Output is correct
68 Correct 3 ms 19716 KB Output is correct
69 Correct 3 ms 19716 KB Output is correct
70 Correct 3 ms 19724 KB Output is correct
71 Correct 3 ms 19712 KB Output is correct
72 Correct 3 ms 19716 KB Output is correct
73 Correct 3 ms 19716 KB Output is correct
74 Correct 3 ms 19716 KB Output is correct
75 Correct 3 ms 19716 KB Output is correct
76 Correct 3 ms 19716 KB Output is correct
77 Correct 4 ms 19716 KB Output is correct
78 Correct 3 ms 19716 KB Output is correct
79 Correct 3 ms 19716 KB Output is correct
80 Correct 3 ms 19716 KB Output is correct
81 Correct 3 ms 19716 KB Output is correct
82 Correct 3 ms 19716 KB Output is correct
83 Correct 3 ms 19716 KB Output is correct
84 Correct 3 ms 19712 KB Output is correct
85 Correct 3 ms 19800 KB Output is correct
86 Correct 3 ms 19716 KB Output is correct
87 Correct 3 ms 19716 KB Output is correct
88 Correct 3 ms 19716 KB Output is correct
89 Correct 2 ms 17668 KB Output is correct
90 Correct 3 ms 17668 KB Output is correct
91 Correct 2 ms 17668 KB Output is correct
92 Correct 2 ms 17668 KB Output is correct
93 Correct 3 ms 17668 KB Output is correct
94 Correct 3 ms 19712 KB Output is correct
95 Correct 3 ms 19724 KB Output is correct
96 Correct 3 ms 19712 KB Output is correct
97 Correct 3 ms 19716 KB Output is correct
98 Correct 3 ms 19628 KB Output is correct
99 Correct 3 ms 19716 KB Output is correct
100 Correct 3 ms 19716 KB Output is correct
101 Correct 3 ms 19716 KB Output is correct
102 Correct 2 ms 17672 KB Output is correct
103 Correct 3 ms 19720 KB Output is correct
104 Correct 3 ms 19716 KB Output is correct
105 Correct 3 ms 19724 KB Output is correct
106 Correct 3 ms 19716 KB Output is correct
107 Correct 3 ms 19716 KB Output is correct
108 Correct 3 ms 19716 KB Output is correct
109 Correct 3 ms 19712 KB Output is correct
110 Correct 3 ms 19712 KB Output is correct
111 Correct 3 ms 19716 KB Output is correct
112 Correct 3 ms 19716 KB Output is correct
113 Correct 2 ms 19716 KB Output is correct
114 Correct 3 ms 19716 KB Output is correct
115 Correct 3 ms 19716 KB Output is correct
116 Correct 3 ms 19716 KB Output is correct
117 Correct 3 ms 19716 KB Output is correct
118 Correct 2 ms 19712 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 445 ms 39800 KB Output is correct : V - N = 12
2 Correct 293 ms 39356 KB Output is correct : V - N = 12
3 Correct 111 ms 25992 KB Output is correct : V - N = 12
4 Correct 10 ms 22804 KB Output is correct : V - N = 12
5 Correct 72 ms 24468 KB Output is correct : V - N = 12
6 Correct 240 ms 39544 KB Output is correct : V - N = 12
7 Correct 365 ms 40344 KB Output is correct : V - N = 12
8 Correct 311 ms 39556 KB Output is correct : V - N = 12
9 Correct 152 ms 26496 KB Output is correct : V - N = 12
10 Correct 20 ms 23148 KB Output is correct : V - N = 12
11 Correct 33 ms 23668 KB Output is correct : V - N = 12
12 Correct 211 ms 30848 KB Output is correct : V - N = 12
13 Correct 401 ms 39516 KB Output is correct : V - N = 12
14 Correct 399 ms 39560 KB Output is correct : V - N = 12
15 Correct 220 ms 33112 KB Output is correct : V - N = 12
16 Correct 52 ms 23744 KB Output is correct : V - N = 12
17 Correct 19 ms 22940 KB Output is correct : V - N = 12
18 Correct 147 ms 26264 KB Output is correct : V - N = 12
19 Correct 330 ms 39564 KB Output is correct : V - N = 12
20 Correct 371 ms 40844 KB Output is correct : V - N = 12
21 Correct 117 ms 22940 KB Output is correct : V - N = 12
22 Correct 68 ms 22676 KB Output is correct : V - N = 12
23 Correct 28 ms 21700 KB Output is correct : V - N = 12
24 Correct 5 ms 20740 KB Output is correct : V - N = 12
25 Correct 16 ms 21380 KB Output is correct : V - N = 12
26 Correct 56 ms 22428 KB Output is correct : V - N = 12
27 Correct 97 ms 22920 KB Output is correct : V - N = 12
28 Correct 84 ms 22704 KB Output is correct : V - N = 12
29 Correct 54 ms 21908 KB Output is correct : V - N = 12
30 Correct 7 ms 21260 KB Output is correct : V - N = 12
31 Correct 8 ms 19132 KB Output is correct : V - N = 12
32 Correct 9 ms 18956 KB Output is correct : V - N = 12
33 Correct 7 ms 18948 KB Output is correct : V - N = 12
34 Correct 7 ms 18944 KB Output is correct : V - N = 12
35 Correct 8 ms 18944 KB Output is correct : V - N = 12
36 Correct 427 ms 39556 KB Output is correct : V - N = 12
37 Correct 408 ms 39064 KB Output is correct : V - N = 12
38 Correct 359 ms 40212 KB Output is correct : V - N = 12
39 Correct 350 ms 39816 KB Output is correct : V - N = 12
40 Correct 371 ms 39556 KB Output is correct : V - N = 12
41 Correct 60 ms 24464 KB Output is correct : V - N = 12
42 Correct 52 ms 23728 KB Output is correct : V - N = 12
43 Correct 73 ms 25092 KB Output is correct : V - N = 12
44 Correct 9 ms 22788 KB Output is correct : V - N = 12
45 Correct 36 ms 23424 KB Output is correct : V - N = 12
46 Correct 141 ms 26016 KB Output is correct : V - N = 12
47 Correct 56 ms 24492 KB Output is correct : V - N = 12
48 Correct 206 ms 26616 KB Output is correct : V - N = 12
49 Correct 31 ms 23448 KB Output is correct : V - N = 12
50 Correct 13 ms 22956 KB Output is correct : V - N = 12
51 Correct 279 ms 39128 KB Output is correct : V - N = 12
52 Correct 12 ms 22796 KB Output is correct : V - N = 12
53 Correct 278 ms 38020 KB Output is correct : V - N = 12
54 Correct 287 ms 39112 KB Output is correct : V - N = 12
55 Correct 23 ms 23364 KB Output is correct : V - N = 12
56 Correct 189 ms 30872 KB Output is correct : V - N = 12
57 Correct 362 ms 39044 KB Output is correct : V - N = 12
58 Correct 47 ms 23744 KB Output is correct : V - N = 12
59 Correct 140 ms 25992 KB Output is correct : V - N = 12
60 Correct 353 ms 39812 KB Output is correct : V - N = 12
61 Correct 3 ms 19712 KB Output is correct : V - N = 9
62 Correct 3 ms 19716 KB Output is correct : V - N = 9
63 Correct 3 ms 19716 KB Output is correct : V - N = 9
64 Correct 3 ms 19724 KB Output is correct : V - N = 9
65 Correct 3 ms 19716 KB Output is correct : V - N = 9
66 Correct 3 ms 19712 KB Output is correct : V - N = 9
67 Correct 3 ms 19716 KB Output is correct : V - N = 9
68 Correct 3 ms 19716 KB Output is correct : V - N = 9
69 Correct 3 ms 19724 KB Output is correct : V - N = 9
70 Correct 2 ms 19724 KB Output is correct : V - N = 9
71 Correct 2 ms 19724 KB Output is correct : V - N = 9
72 Correct 3 ms 19716 KB Output is correct : V - N = 9
73 Correct 3 ms 19712 KB Output is correct : V - N = 9
74 Correct 3 ms 19716 KB Output is correct : V - N = 9
75 Correct 3 ms 19716 KB Output is correct : V - N = 9
76 Correct 3 ms 19724 KB Output is correct : V - N = 9
77 Correct 3 ms 19728 KB Output is correct : V - N = 9
78 Correct 2 ms 19716 KB Output is correct : V - N = 9
79 Correct 3 ms 19716 KB Output is correct : V - N = 9
80 Correct 3 ms 19716 KB Output is correct : V - N = 9
81 Correct 3 ms 19712 KB Output is correct : V - N = 8
82 Correct 2 ms 19712 KB Output is correct : V - N = 8
83 Correct 3 ms 19712 KB Output is correct : V - N = 9
84 Correct 4 ms 19672 KB Output is correct : V - N = 8
85 Correct 3 ms 19716 KB Output is correct : V - N = 8
86 Correct 3 ms 19716 KB Output is correct : V - N = 9
87 Correct 3 ms 19716 KB Output is correct : V - N = 9
88 Correct 3 ms 19716 KB Output is correct : V - N = 8
89 Correct 3 ms 19724 KB Output is correct : V - N = 8
90 Correct 3 ms 19716 KB Output is correct : V - N = 8
91 Correct 2 ms 17676 KB Output is correct : V - N = 9
92 Correct 2 ms 17672 KB Output is correct : V - N = 9
93 Correct 3 ms 17668 KB Output is correct : V - N = 9
94 Correct 2 ms 17668 KB Output is correct : V - N = 9
95 Correct 2 ms 17668 KB Output is correct : V - N = 9
96 Correct 3 ms 19716 KB Output is correct : V - N = 9
97 Correct 3 ms 19712 KB Output is correct : V - N = 9
98 Correct 4 ms 19716 KB Output is correct : V - N = 9
99 Correct 3 ms 19708 KB Output is correct : V - N = 9
100 Correct 3 ms 19716 KB Output is correct : V - N = 9
101 Correct 3 ms 19716 KB Output is correct : V - N = 9
102 Correct 3 ms 19748 KB Output is correct : V - N = 9
103 Correct 2 ms 19716 KB Output is correct : V - N = 9
104 Correct 2 ms 17664 KB Output is correct : V - N = 9
105 Correct 3 ms 19712 KB Output is correct : V - N = 9
106 Correct 2 ms 19724 KB Output is correct : V - N = 9
107 Correct 3 ms 19716 KB Output is correct : V - N = 9
108 Correct 3 ms 19720 KB Output is correct : V - N = 9
109 Correct 2 ms 19716 KB Output is correct : V - N = 9
110 Correct 2 ms 19716 KB Output is correct : V - N = 9
111 Correct 3 ms 19716 KB Output is correct : V - N = 9
112 Correct 3 ms 19716 KB Output is correct : V - N = 8
113 Correct 3 ms 19712 KB Output is correct : V - N = 8
114 Correct 2 ms 19712 KB Output is correct : V - N = 8
115 Correct 2 ms 19712 KB Output is correct : V - N = 8
116 Correct 3 ms 19716 KB Output is correct : V - N = 8
117 Correct 3 ms 19716 KB Output is correct : V - N = 9
118 Correct 3 ms 19712 KB Output is correct : V - N = 8
119 Correct 3 ms 19716 KB Output is correct : V - N = 9
120 Correct 2 ms 19716 KB Output is correct : V - N = 8
121 Correct 2 ms 19716 KB Output is correct : V - N = 7
122 Correct 3 ms 19724 KB Output is correct : V - N = 7
123 Correct 2 ms 19716 KB Output is correct : V - N = 7
124 Correct 2 ms 17648 KB Output is correct : V - N = 7
125 Correct 3 ms 19716 KB Output is correct : V - N = 7
126 Correct 2 ms 19712 KB Output is correct : V - N = 7
127 Correct 2 ms 19716 KB Output is correct : V - N = 7
128 Correct 2 ms 19716 KB Output is correct : V - N = 7
129 Correct 3 ms 19716 KB Output is correct : V - N = 7
130 Correct 2 ms 17668 KB Output is correct : V - N = 7
131 Correct 2 ms 19964 KB Output is correct : V - N = 7
132 Correct 3 ms 19716 KB Output is correct : V - N = 7
133 Correct 2 ms 19712 KB Output is correct : V - N = 7
134 Correct 2 ms 19716 KB Output is correct : V - N = 7
135 Correct 2 ms 19716 KB Output is correct : V - N = 7
136 Correct 3 ms 19716 KB Output is correct : V - N = 7
137 Correct 3 ms 19716 KB Output is correct : V - N = 7
138 Correct 3 ms 19716 KB Output is correct : V - N = 7
139 Correct 2 ms 19724 KB Output is correct : V - N = 7
140 Correct 2 ms 19724 KB Output is correct : V - N = 7
141 Correct 3 ms 19724 KB Output is correct : V - N = 7
142 Correct 3 ms 19712 KB Output is correct : V - N = 6
143 Correct 2 ms 19724 KB Output is correct : V - N = 7
144 Correct 2 ms 17668 KB Output is correct : V - N = 6
145 Correct 2 ms 19716 KB Output is correct : V - N = 6
146 Correct 2 ms 19716 KB Output is correct : V - N = 6
147 Correct 3 ms 19712 KB Output is correct : V - N = 6
148 Correct 2 ms 19724 KB Output is correct : V - N = 7
149 Correct 3 ms 19716 KB Output is correct : V - N = 6
150 Correct 2 ms 17664 KB Output is correct : V - N = 6
151 Correct 2 ms 17668 KB Output is correct : V - N = 7
152 Correct 2 ms 17668 KB Output is correct : V - N = 7
153 Correct 3 ms 17668 KB Output is correct : V - N = 7
154 Correct 2 ms 17668 KB Output is correct : V - N = 7
155 Correct 2 ms 17668 KB Output is correct : V - N = 7
156 Correct 3 ms 19716 KB Output is correct : V - N = 7
157 Correct 3 ms 19724 KB Output is correct : V - N = 7
158 Correct 3 ms 19712 KB Output is correct : V - N = 7
159 Correct 2 ms 19712 KB Output is correct : V - N = 7
160 Correct 2 ms 19720 KB Output is correct : V - N = 7
161 Correct 2 ms 19716 KB Output is correct : V - N = 7
162 Correct 2 ms 19716 KB Output is correct : V - N = 7
163 Correct 3 ms 19716 KB Output is correct : V - N = 7
164 Correct 2 ms 17668 KB Output is correct : V - N = 7
165 Correct 2 ms 17664 KB Output is correct : V - N = 7
166 Correct 3 ms 19716 KB Output is correct : V - N = 7
167 Correct 3 ms 19712 KB Output is correct : V - N = 7
168 Correct 3 ms 19728 KB Output is correct : V - N = 7
169 Correct 2 ms 19716 KB Output is correct : V - N = 7
170 Correct 2 ms 17664 KB Output is correct : V - N = 7
171 Correct 1 ms 13572 KB Output is correct : V - N = 0
172 Correct 2 ms 19716 KB Output is correct : V - N = 0
173 Correct 1 ms 13572 KB Output is correct : V - N = 0
174 Correct 3 ms 19712 KB Output is correct : V - N = 5
175 Correct 3 ms 19716 KB Output is correct : V - N = 5
176 Correct 3 ms 19716 KB Output is correct : V - N = 5
177 Correct 2 ms 19716 KB Output is correct : V - N = 5
178 Correct 3 ms 19716 KB Output is correct : V - N = 6