Submission #105573

# Submission time Handle Problem Language Result Execution time Memory
105573 2019-04-13T15:09:01 Z szawinis Airline Route Map (JOI18_airline) C++17
100 / 100
845 ms 31048 KB
#include "Alicelib.h"
#include <cassert>
#include <cstdio>
#include <vector>
#include <utility>
#include <iostream>
const int K = 10;

void Alice( int N, int M, int A[], int B[] ){
    if(N == 1) {
        InitG(N, M);
        return;
    }
    if(N == 2) {
        InitG(N, M);
        if(M) MakeG(0, 0, 1);
        return;
    }
	std::vector<std::pair<int, int> > edges;
	for(int i = 0; i < M; i++) {
		edges.emplace_back(A[i], B[i]); // original graph
	}
	for(int i = 0; i < N; i++) {
		for(int j = 0; j < K; j++) {
			if(!((i + 1) >> j & 1)) continue; // make graph 1-indexed, so connect to corresponding nodes
			edges.emplace_back(i, N + j); // links between bit vertices and origianl vertices
		}
	}
	for(int j = 0; j < K - 1; j++) edges.emplace_back(N + j, N + j + 1); // links between bit vertices
	for(int i = 0; i < N; i++) {
		edges.emplace_back(i, N + K); // N + 10 is the special vertex
	}
	edges.emplace_back(N + K, N + K + 1); // N + 11 is the one-degree vertex
	int curr_idx = 0;
	InitG(N + K + 2, edges.size());
//    for(auto p: edges) std::cerr << p.first << ' ' << p.second << std::endl;
	for(auto p: edges) MakeG(curr_idx++, p.first, p.second);
}
#include "Boblib.h"
#include <cassert>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
const int K = 10;

void Bob(int N, int M, int A[], int B[]) {
    if(N == 1) {
        InitMap(N, M);
        return;
    }
    if(N == 2) {
        InitMap(N, M);
        for(int i = 0; i < M; i++) MakeMap(A[i], B[i]);
        return;
    }
    std::vector<int> g[N];
    for(int i = 0; i < M; i++) {
        g[A[i]].push_back(B[i]);
        g[B[i]].push_back(A[i]);
//        std::cerr << A[i] << ' ' << B[i] << ' ' << std::endl;
    }

    //find special vertex
    std::vector<int> deg1;
    for(int i = 0; i < N; i++) if(g[i].size() == 1) deg1.push_back(i);
    assert(deg1.size() <= 2);
    int very_special_vertex = deg1[0]; // vertex of degree 1 that points to the special vertex
    int special_vertex = g[deg1[0]][0];
    if(deg1.size() == 2) {
        if(g[special_vertex].size() != N - K - 1) {
            very_special_vertex = deg1[1];
            special_vertex = g[deg1[1]][0];
        }
    }
//    std::cerr << "specials " << very_special_vertex << ' ' << special_vertex << std::endl;
//    std::cerr << "bit_vertices " << std::endl;

    //find bit vertices
    std::vector<int> bit_vertices;
    std::vector<bool> is_bit_vertex(N);
    for(int i = 0; i < N; i++) if(i != special_vertex) {
        if(std::find(g[i].begin(), g[i].end(), special_vertex) == g[i].end()) {
            bit_vertices.push_back(i);
            is_bit_vertex[i] = true;
        }
    }
    assert(bit_vertices.size() == K);

    int mx_bit_vertex = *min_element(bit_vertices.begin(), bit_vertices.end(), [&] (int i, int j) { return g[i].size() < g[j].size(); });
    std::vector<int> vals(N);
    for(int ord = K - 1, curr = mx_bit_vertex; ord >= 0; ord--) {
//        std::cerr << curr << ' ' << ord << std::endl;
        for(int v: g[curr]) {
            assert(v != very_special_vertex && v != special_vertex);
            if(is_bit_vertex[v]) continue;
            vals[v] |= 1 << ord;
        }

        for(int v: g[curr]) {
            if(is_bit_vertex[v]) {
                g[v].erase(std::find(g[v].begin(), g[v].end(), curr));
                curr = v;
                break;
            }
        }
    }

    auto in_org_graph = [&] (int v) -> bool { return v != very_special_vertex && v != special_vertex && !is_bit_vertex[v]; };
    std::vector<std::pair<int,int> > ans;
    for(int i = 0; i < M; i++) {
        if(in_org_graph(A[i]) && in_org_graph(B[i])) ans.emplace_back(vals[A[i]] - 1, vals[B[i]] - 1);
    }
    InitMap(N - K - 2, ans.size());
//    for(auto p: ans) std::cerr << p.first << ' ' << p.second << std::endl;
    for(auto p: ans) MakeMap(p.first, p.second);
}

Compilation message

Bob.cpp: In function 'void Bob(int, int, int*, int*)':
Bob.cpp:33:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(g[special_vertex].size() != N - K - 1) {
            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 10 ms 6752 KB Output is correct
2 Correct 9 ms 6968 KB Output is correct
3 Correct 10 ms 6656 KB Output is correct
4 Correct 9 ms 6656 KB Output is correct
5 Correct 8 ms 6656 KB Output is correct
6 Correct 10 ms 6968 KB Output is correct
7 Correct 10 ms 6656 KB Output is correct
8 Correct 10 ms 6912 KB Output is correct
9 Correct 11 ms 6912 KB Output is correct
10 Correct 10 ms 6912 KB Output is correct
11 Correct 8 ms 6656 KB Output is correct
12 Correct 10 ms 6656 KB Output is correct
13 Correct 11 ms 7000 KB Output is correct
14 Correct 9 ms 6656 KB Output is correct
15 Correct 10 ms 6912 KB Output is correct
16 Correct 10 ms 6912 KB Output is correct
17 Correct 9 ms 6912 KB Output is correct
18 Correct 8 ms 6656 KB Output is correct
19 Correct 9 ms 6656 KB Output is correct
20 Correct 10 ms 6912 KB Output is correct
21 Correct 9 ms 6656 KB Output is correct
22 Correct 9 ms 6912 KB Output is correct
23 Correct 8 ms 6656 KB Output is correct
24 Correct 8 ms 6912 KB Output is correct
25 Correct 10 ms 6912 KB Output is correct
26 Correct 8 ms 6656 KB Output is correct
27 Correct 9 ms 6912 KB Output is correct
28 Correct 10 ms 6912 KB Output is correct
29 Correct 9 ms 6656 KB Output is correct
30 Correct 10 ms 6656 KB Output is correct
31 Correct 9 ms 6912 KB Output is correct
32 Correct 12 ms 6912 KB Output is correct
33 Correct 10 ms 6656 KB Output is correct
34 Correct 8 ms 6656 KB Output is correct
35 Correct 9 ms 6904 KB Output is correct
36 Correct 9 ms 6656 KB Output is correct
37 Correct 11 ms 6912 KB Output is correct
38 Correct 10 ms 6912 KB Output is correct
39 Correct 8 ms 6712 KB Output is correct
40 Correct 10 ms 6912 KB Output is correct
41 Correct 10 ms 6696 KB Output is correct
42 Correct 10 ms 6912 KB Output is correct
43 Correct 10 ms 6912 KB Output is correct
44 Correct 9 ms 6656 KB Output is correct
45 Correct 10 ms 6912 KB Output is correct
46 Correct 11 ms 6736 KB Output is correct
47 Correct 8 ms 6656 KB Output is correct
48 Correct 9 ms 6912 KB Output is correct
49 Correct 8 ms 6656 KB Output is correct
50 Correct 8 ms 6656 KB Output is correct
51 Correct 9 ms 6656 KB Output is correct
52 Correct 4 ms 6912 KB Output is correct
53 Correct 9 ms 6656 KB Output is correct
54 Correct 10 ms 6912 KB Output is correct
55 Correct 9 ms 6656 KB Output is correct
56 Correct 9 ms 6656 KB Output is correct
57 Correct 9 ms 6912 KB Output is correct
58 Correct 6 ms 7168 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 6752 KB Output is correct
2 Correct 9 ms 6968 KB Output is correct
3 Correct 10 ms 6656 KB Output is correct
4 Correct 9 ms 6656 KB Output is correct
5 Correct 8 ms 6656 KB Output is correct
6 Correct 10 ms 6968 KB Output is correct
7 Correct 10 ms 6656 KB Output is correct
8 Correct 10 ms 6912 KB Output is correct
9 Correct 11 ms 6912 KB Output is correct
10 Correct 10 ms 6912 KB Output is correct
11 Correct 8 ms 6656 KB Output is correct
12 Correct 10 ms 6656 KB Output is correct
13 Correct 11 ms 7000 KB Output is correct
14 Correct 9 ms 6656 KB Output is correct
15 Correct 10 ms 6912 KB Output is correct
16 Correct 10 ms 6912 KB Output is correct
17 Correct 9 ms 6912 KB Output is correct
18 Correct 8 ms 6656 KB Output is correct
19 Correct 9 ms 6656 KB Output is correct
20 Correct 10 ms 6912 KB Output is correct
21 Correct 9 ms 6656 KB Output is correct
22 Correct 9 ms 6912 KB Output is correct
23 Correct 8 ms 6656 KB Output is correct
24 Correct 8 ms 6912 KB Output is correct
25 Correct 10 ms 6912 KB Output is correct
26 Correct 8 ms 6656 KB Output is correct
27 Correct 9 ms 6912 KB Output is correct
28 Correct 10 ms 6912 KB Output is correct
29 Correct 9 ms 6656 KB Output is correct
30 Correct 10 ms 6656 KB Output is correct
31 Correct 9 ms 6912 KB Output is correct
32 Correct 12 ms 6912 KB Output is correct
33 Correct 10 ms 6656 KB Output is correct
34 Correct 8 ms 6656 KB Output is correct
35 Correct 9 ms 6904 KB Output is correct
36 Correct 9 ms 6656 KB Output is correct
37 Correct 11 ms 6912 KB Output is correct
38 Correct 10 ms 6912 KB Output is correct
39 Correct 8 ms 6712 KB Output is correct
40 Correct 10 ms 6912 KB Output is correct
41 Correct 10 ms 6696 KB Output is correct
42 Correct 10 ms 6912 KB Output is correct
43 Correct 10 ms 6912 KB Output is correct
44 Correct 9 ms 6656 KB Output is correct
45 Correct 10 ms 6912 KB Output is correct
46 Correct 11 ms 6736 KB Output is correct
47 Correct 8 ms 6656 KB Output is correct
48 Correct 9 ms 6912 KB Output is correct
49 Correct 8 ms 6656 KB Output is correct
50 Correct 8 ms 6656 KB Output is correct
51 Correct 9 ms 6656 KB Output is correct
52 Correct 4 ms 6912 KB Output is correct
53 Correct 9 ms 6656 KB Output is correct
54 Correct 10 ms 6912 KB Output is correct
55 Correct 9 ms 6656 KB Output is correct
56 Correct 9 ms 6656 KB Output is correct
57 Correct 9 ms 6912 KB Output is correct
58 Correct 6 ms 7168 KB Output is correct
59 Correct 10 ms 6912 KB Output is correct
60 Correct 9 ms 6656 KB Output is correct
61 Correct 8 ms 6656 KB Output is correct
62 Correct 9 ms 6752 KB Output is correct
63 Correct 9 ms 6912 KB Output is correct
64 Correct 10 ms 6912 KB Output is correct
65 Correct 11 ms 6656 KB Output is correct
66 Correct 11 ms 6912 KB Output is correct
67 Correct 8 ms 6912 KB Output is correct
68 Correct 9 ms 6656 KB Output is correct
69 Correct 8 ms 6656 KB Output is correct
70 Correct 9 ms 6912 KB Output is correct
71 Correct 10 ms 6656 KB Output is correct
72 Correct 9 ms 6656 KB Output is correct
73 Correct 12 ms 7168 KB Output is correct
74 Correct 8 ms 6656 KB Output is correct
75 Correct 10 ms 6656 KB Output is correct
76 Correct 11 ms 6912 KB Output is correct
77 Correct 8 ms 6912 KB Output is correct
78 Correct 9 ms 6752 KB Output is correct
79 Correct 27 ms 6912 KB Output is correct
80 Correct 11 ms 6656 KB Output is correct
81 Correct 10 ms 6912 KB Output is correct
82 Correct 8 ms 6656 KB Output is correct
83 Correct 10 ms 6912 KB Output is correct
84 Correct 10 ms 6656 KB Output is correct
85 Correct 10 ms 6656 KB Output is correct
86 Correct 8 ms 6912 KB Output is correct
87 Correct 8 ms 6656 KB Output is correct
88 Correct 11 ms 6656 KB Output is correct
89 Correct 9 ms 6656 KB Output is correct
90 Correct 9 ms 6656 KB Output is correct
91 Correct 8 ms 6656 KB Output is correct
92 Correct 9 ms 6656 KB Output is correct
93 Correct 11 ms 6656 KB Output is correct
94 Correct 9 ms 6912 KB Output is correct
95 Correct 11 ms 6656 KB Output is correct
96 Correct 8 ms 6656 KB Output is correct
97 Correct 9 ms 6912 KB Output is correct
98 Correct 10 ms 6656 KB Output is correct
99 Correct 8 ms 6656 KB Output is correct
100 Correct 10 ms 6912 KB Output is correct
101 Correct 9 ms 6656 KB Output is correct
102 Correct 9 ms 6656 KB Output is correct
103 Correct 8 ms 6912 KB Output is correct
104 Correct 9 ms 6912 KB Output is correct
105 Correct 8 ms 6912 KB Output is correct
106 Correct 9 ms 6912 KB Output is correct
107 Correct 10 ms 6912 KB Output is correct
108 Correct 8 ms 6656 KB Output is correct
109 Correct 10 ms 6912 KB Output is correct
110 Correct 10 ms 6656 KB Output is correct
111 Correct 9 ms 6656 KB Output is correct
112 Correct 10 ms 6656 KB Output is correct
113 Correct 10 ms 6656 KB Output is correct
114 Correct 8 ms 6656 KB Output is correct
115 Correct 9 ms 6656 KB Output is correct
116 Correct 10 ms 6912 KB Output is correct
117 Correct 9 ms 6656 KB Output is correct
118 Correct 9 ms 6912 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 733 ms 30856 KB Output is correct : V - N = 12
2 Correct 583 ms 25828 KB Output is correct : V - N = 12
3 Correct 263 ms 14044 KB Output is correct : V - N = 12
4 Correct 18 ms 7472 KB Output is correct : V - N = 12
5 Correct 130 ms 11416 KB Output is correct : V - N = 12
6 Correct 495 ms 23684 KB Output is correct : V - N = 12
7 Correct 694 ms 30176 KB Output is correct : V - N = 12
8 Correct 604 ms 27736 KB Output is correct : V - N = 12
9 Correct 347 ms 17344 KB Output is correct : V - N = 12
10 Correct 73 ms 8264 KB Output is correct : V - N = 12
11 Correct 81 ms 8928 KB Output is correct : V - N = 12
12 Correct 447 ms 19072 KB Output is correct : V - N = 12
13 Correct 654 ms 28792 KB Output is correct : V - N = 12
14 Correct 702 ms 29632 KB Output is correct : V - N = 12
15 Correct 443 ms 22708 KB Output is correct : V - N = 12
16 Correct 107 ms 10208 KB Output is correct : V - N = 12
17 Correct 30 ms 7784 KB Output is correct : V - N = 12
18 Correct 272 ms 15896 KB Output is correct : V - N = 12
19 Correct 635 ms 26864 KB Output is correct : V - N = 12
20 Correct 779 ms 30440 KB Output is correct : V - N = 12
21 Correct 214 ms 13520 KB Output is correct : V - N = 12
22 Correct 166 ms 11832 KB Output is correct : V - N = 12
23 Correct 59 ms 8984 KB Output is correct : V - N = 12
24 Correct 11 ms 6968 KB Output is correct : V - N = 12
25 Correct 43 ms 8168 KB Output is correct : V - N = 12
26 Correct 143 ms 10824 KB Output is correct : V - N = 12
27 Correct 215 ms 13272 KB Output is correct : V - N = 12
28 Correct 169 ms 12552 KB Output is correct : V - N = 12
29 Correct 102 ms 9792 KB Output is correct : V - N = 12
30 Correct 25 ms 7592 KB Output is correct : V - N = 12
31 Correct 14 ms 7168 KB Output is correct : V - N = 12
32 Correct 46 ms 7168 KB Output is correct : V - N = 12
33 Correct 17 ms 7168 KB Output is correct : V - N = 12
34 Correct 14 ms 7424 KB Output is correct : V - N = 12
35 Correct 17 ms 7168 KB Output is correct : V - N = 12
36 Correct 783 ms 30656 KB Output is correct : V - N = 12
37 Correct 792 ms 30616 KB Output is correct : V - N = 12
38 Correct 845 ms 31040 KB Output is correct : V - N = 12
39 Correct 761 ms 30656 KB Output is correct : V - N = 12
40 Correct 799 ms 31048 KB Output is correct : V - N = 12
41 Correct 139 ms 10968 KB Output is correct : V - N = 12
42 Correct 134 ms 10200 KB Output is correct : V - N = 12
43 Correct 121 ms 10544 KB Output is correct : V - N = 12
44 Correct 17 ms 7168 KB Output is correct : V - N = 12
45 Correct 80 ms 9440 KB Output is correct : V - N = 12
46 Correct 280 ms 14896 KB Output is correct : V - N = 12
47 Correct 137 ms 11416 KB Output is correct : V - N = 12
48 Correct 369 ms 17360 KB Output is correct : V - N = 12
49 Correct 73 ms 8928 KB Output is correct : V - N = 12
50 Correct 27 ms 7680 KB Output is correct : V - N = 12
51 Correct 614 ms 25688 KB Output is correct : V - N = 12
52 Correct 19 ms 7288 KB Output is correct : V - N = 12
53 Correct 473 ms 23596 KB Output is correct : V - N = 12
54 Correct 613 ms 27376 KB Output is correct : V - N = 12
55 Correct 47 ms 8208 KB Output is correct : V - N = 12
56 Correct 388 ms 18744 KB Output is correct : V - N = 12
57 Correct 754 ms 29104 KB Output is correct : V - N = 12
58 Correct 109 ms 9952 KB Output is correct : V - N = 12
59 Correct 298 ms 15824 KB Output is correct : V - N = 12
60 Correct 810 ms 29960 KB Output is correct : V - N = 12
61 Correct 10 ms 6656 KB Output is correct : V - N = 12
62 Correct 8 ms 6912 KB Output is correct : V - N = 12
63 Correct 9 ms 6656 KB Output is correct : V - N = 12
64 Correct 9 ms 6656 KB Output is correct : V - N = 12
65 Correct 10 ms 6696 KB Output is correct : V - N = 12
66 Correct 9 ms 6656 KB Output is correct : V - N = 12
67 Correct 10 ms 6912 KB Output is correct : V - N = 12
68 Correct 9 ms 6656 KB Output is correct : V - N = 12
69 Correct 11 ms 6656 KB Output is correct : V - N = 12
70 Correct 10 ms 6656 KB Output is correct : V - N = 12
71 Correct 9 ms 6656 KB Output is correct : V - N = 12
72 Correct 11 ms 6656 KB Output is correct : V - N = 12
73 Correct 11 ms 6912 KB Output is correct : V - N = 12
74 Correct 9 ms 6656 KB Output is correct : V - N = 12
75 Correct 9 ms 6656 KB Output is correct : V - N = 12
76 Correct 10 ms 6656 KB Output is correct : V - N = 12
77 Correct 11 ms 6656 KB Output is correct : V - N = 12
78 Correct 10 ms 6912 KB Output is correct : V - N = 12
79 Correct 10 ms 6912 KB Output is correct : V - N = 12
80 Correct 12 ms 6968 KB Output is correct : V - N = 12
81 Correct 9 ms 6656 KB Output is correct : V - N = 12
82 Correct 9 ms 6656 KB Output is correct : V - N = 12
83 Correct 9 ms 6656 KB Output is correct : V - N = 12
84 Correct 9 ms 6912 KB Output is correct : V - N = 12
85 Correct 9 ms 6656 KB Output is correct : V - N = 12
86 Correct 11 ms 6784 KB Output is correct : V - N = 12
87 Correct 9 ms 6744 KB Output is correct : V - N = 12
88 Correct 10 ms 6912 KB Output is correct : V - N = 12
89 Correct 9 ms 6912 KB Output is correct : V - N = 12
90 Correct 10 ms 6912 KB Output is correct : V - N = 12
91 Correct 10 ms 6656 KB Output is correct : V - N = 12
92 Correct 9 ms 6912 KB Output is correct : V - N = 12
93 Correct 9 ms 6912 KB Output is correct : V - N = 12
94 Correct 10 ms 6656 KB Output is correct : V - N = 12
95 Correct 9 ms 6656 KB Output is correct : V - N = 12
96 Correct 9 ms 6912 KB Output is correct : V - N = 12
97 Correct 10 ms 6912 KB Output is correct : V - N = 12
98 Correct 11 ms 6656 KB Output is correct : V - N = 12
99 Correct 9 ms 6656 KB Output is correct : V - N = 12
100 Correct 8 ms 6656 KB Output is correct : V - N = 12
101 Correct 10 ms 6912 KB Output is correct : V - N = 12
102 Correct 9 ms 6656 KB Output is correct : V - N = 12
103 Correct 9 ms 6912 KB Output is correct : V - N = 12
104 Correct 9 ms 6912 KB Output is correct : V - N = 12
105 Correct 11 ms 7168 KB Output is correct : V - N = 12
106 Correct 10 ms 7168 KB Output is correct : V - N = 12
107 Correct 10 ms 6912 KB Output is correct : V - N = 12
108 Correct 9 ms 6656 KB Output is correct : V - N = 12
109 Correct 9 ms 6656 KB Output is correct : V - N = 12
110 Correct 8 ms 6656 KB Output is correct : V - N = 12
111 Correct 8 ms 6744 KB Output is correct : V - N = 12
112 Correct 9 ms 6656 KB Output is correct : V - N = 12
113 Correct 9 ms 6656 KB Output is correct : V - N = 12
114 Correct 8 ms 6656 KB Output is correct : V - N = 12
115 Correct 9 ms 6912 KB Output is correct : V - N = 12
116 Correct 8 ms 6656 KB Output is correct : V - N = 12
117 Correct 9 ms 6912 KB Output is correct : V - N = 12
118 Correct 9 ms 6656 KB Output is correct : V - N = 12
119 Correct 8 ms 6656 KB Output is correct : V - N = 12
120 Correct 9 ms 6656 KB Output is correct : V - N = 12
121 Correct 20 ms 6656 KB Output is correct : V - N = 12
122 Correct 7 ms 6912 KB Output is correct : V - N = 12
123 Correct 9 ms 6912 KB Output is correct : V - N = 12
124 Correct 8 ms 6912 KB Output is correct : V - N = 12
125 Correct 10 ms 6912 KB Output is correct : V - N = 12
126 Correct 9 ms 6744 KB Output is correct : V - N = 12
127 Correct 8 ms 6912 KB Output is correct : V - N = 12
128 Correct 11 ms 6912 KB Output is correct : V - N = 12
129 Correct 8 ms 7000 KB Output is correct : V - N = 12
130 Correct 10 ms 6912 KB Output is correct : V - N = 12
131 Correct 9 ms 6912 KB Output is correct : V - N = 12
132 Correct 10 ms 6968 KB Output is correct : V - N = 12
133 Correct 10 ms 6912 KB Output is correct : V - N = 12
134 Correct 9 ms 6912 KB Output is correct : V - N = 12
135 Correct 8 ms 6656 KB Output is correct : V - N = 12
136 Correct 8 ms 6912 KB Output is correct : V - N = 12
137 Correct 9 ms 6912 KB Output is correct : V - N = 12
138 Correct 10 ms 6656 KB Output is correct : V - N = 12
139 Correct 11 ms 6912 KB Output is correct : V - N = 12
140 Correct 8 ms 6912 KB Output is correct : V - N = 12
141 Correct 8 ms 6912 KB Output is correct : V - N = 12
142 Correct 8 ms 6912 KB Output is correct : V - N = 12
143 Correct 9 ms 6912 KB Output is correct : V - N = 12
144 Correct 9 ms 6912 KB Output is correct : V - N = 12
145 Correct 10 ms 6656 KB Output is correct : V - N = 12
146 Correct 10 ms 6656 KB Output is correct : V - N = 12
147 Correct 9 ms 6912 KB Output is correct : V - N = 12
148 Correct 8 ms 6752 KB Output is correct : V - N = 12
149 Correct 9 ms 6912 KB Output is correct : V - N = 12
150 Correct 10 ms 6656 KB Output is correct : V - N = 12
151 Correct 8 ms 6656 KB Output is correct : V - N = 12
152 Correct 8 ms 6912 KB Output is correct : V - N = 12
153 Correct 8 ms 6656 KB Output is correct : V - N = 12
154 Correct 9 ms 6912 KB Output is correct : V - N = 12
155 Correct 10 ms 6656 KB Output is correct : V - N = 12
156 Correct 8 ms 6912 KB Output is correct : V - N = 12
157 Correct 10 ms 6912 KB Output is correct : V - N = 12
158 Correct 8 ms 6912 KB Output is correct : V - N = 12
159 Correct 10 ms 6656 KB Output is correct : V - N = 12
160 Correct 9 ms 6912 KB Output is correct : V - N = 12
161 Correct 9 ms 6656 KB Output is correct : V - N = 12
162 Correct 11 ms 6656 KB Output is correct : V - N = 12
163 Correct 9 ms 6656 KB Output is correct : V - N = 12
164 Correct 11 ms 6656 KB Output is correct : V - N = 12
165 Correct 10 ms 6656 KB Output is correct : V - N = 12
166 Correct 8 ms 6656 KB Output is correct : V - N = 12
167 Correct 9 ms 6656 KB Output is correct : V - N = 12
168 Correct 9 ms 6656 KB Output is correct : V - N = 12
169 Correct 7 ms 6912 KB Output is correct : V - N = 12
170 Correct 9 ms 6656 KB Output is correct : V - N = 12
171 Correct 9 ms 6656 KB Output is correct : V - N = 0
172 Correct 11 ms 6656 KB Output is correct : V - N = 0
173 Correct 10 ms 6656 KB Output is correct : V - N = 0
174 Correct 11 ms 6912 KB Output is correct : V - N = 12
175 Correct 9 ms 6912 KB Output is correct : V - N = 12
176 Correct 9 ms 6912 KB Output is correct : V - N = 12
177 Correct 8 ms 6912 KB Output is correct : V - N = 12
178 Correct 9 ms 6656 KB Output is correct : V - N = 12