답안 #503198

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
503198 2022-01-07T13:23:21 Z sidon 항공 노선도 (JOI18_airline) C++17
100 / 100
744 ms 25568 KB
#include "Alicelib.h"
#include <bits/stdc++.h>
using namespace std;

void Alice(int N, int M, int *A, int *B) {
	vector<pair<int, int>> G;
	
	for(int i = 1; i <= N; ++i)
		for(int j = 0; j < 10; ++j)
			if((i >> j) & 1) G.emplace_back(N+j, i-1);

	for(int k = 0; k < 3; ++k)
		for(int j = k>1; j < (!k)*N+10; ++j)
			G.emplace_back((k>0)*N+j, N+(k ? (k & 1 ? 10 : j-1) : 11));

	InitG(N + 12, size(G) + M);

	for(int i = 0; i < M; ++i)
		MakeG(i, A[i], B[i]);

	for(auto &[u, v] : G) MakeG(M++, u, v);
}
#include "Boblib.h"
#include <bits/stdc++.h>
using namespace std;

void Bob(int N, int M, int *A, int *B){

	int org = 0, d[N] = {}, p[N] = {}, R, f = -1;
	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]);

	for(int i = 0; i < N; ++i)
		if(size(G[i]) > size(G[org])) org = i;

	for(int u = 0; u < N; ++u) {
		bool ok = u == org;
		for(int v : G[org]) if(v == u) ok = 1;
		if(!ok) R = u;
	}

	for(int u : G[R]) ++d[u], p[u] = p[R] = p[org] = -2e5;
	for(int u : G[R])
		for(int v : G[u]) if(d[v]) ++d[u];

	for(int u : G[R])
		if(d[u] < 3 && ((int)size(G[u]) - 3) == (N-11)/2)
			d[f = u] = 0;

	for(int j = 0, nxt; j < 10; ++j, d[f] = 0, f = nxt)
		for(int v : G[f])
			d[v] ? nxt = v : p[v] += 1<<j;

	vector<pair<int, int>> E;

	for(int i = 0; i < M; ++i)
		if(min(p[A[i]], p[B[i]]) > 0)
			E.emplace_back(p[A[i]]-1, p[B[i]]-1);

	InitMap(N-12, size(E));
	for(auto &[u, v] : E) MakeMap(u, v);
}

Compilation message

Bob.cpp: In function 'void Bob(int, int, int*, int*)':
Bob.cpp:31:17: warning: 'nxt' may be used uninitialized in this function [-Wmaybe-uninitialized]
   31 |  for(int j = 0, nxt; j < 10; ++j, d[f] = 0, f = nxt)
      |                 ^~~
Bob.cpp:7:37: warning: 'R' may be used uninitialized in this function [-Wmaybe-uninitialized]
    7 |  int org = 0, d[N] = {}, p[N] = {}, R, f = -1;
      |                                     ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4592 KB Output is correct
2 Correct 2 ms 4584 KB Output is correct
3 Correct 3 ms 4588 KB Output is correct
4 Correct 3 ms 4564 KB Output is correct
5 Correct 2 ms 4596 KB Output is correct
6 Correct 3 ms 4588 KB Output is correct
7 Correct 2 ms 4596 KB Output is correct
8 Correct 3 ms 4540 KB Output is correct
9 Correct 1 ms 4596 KB Output is correct
10 Correct 1 ms 4564 KB Output is correct
11 Correct 2 ms 4588 KB Output is correct
12 Correct 3 ms 4588 KB Output is correct
13 Correct 2 ms 4588 KB Output is correct
14 Correct 3 ms 4516 KB Output is correct
15 Correct 3 ms 4588 KB Output is correct
16 Correct 3 ms 4588 KB Output is correct
17 Correct 3 ms 4588 KB Output is correct
18 Correct 2 ms 4584 KB Output is correct
19 Correct 3 ms 4588 KB Output is correct
20 Correct 3 ms 4588 KB Output is correct
21 Correct 3 ms 4596 KB Output is correct
22 Correct 3 ms 4600 KB Output is correct
23 Correct 2 ms 4596 KB Output is correct
24 Correct 3 ms 4584 KB Output is correct
25 Correct 3 ms 4568 KB Output is correct
26 Correct 3 ms 4588 KB Output is correct
27 Correct 2 ms 4588 KB Output is correct
28 Correct 3 ms 4600 KB Output is correct
29 Correct 1 ms 4568 KB Output is correct
30 Correct 3 ms 4588 KB Output is correct
31 Correct 2 ms 4584 KB Output is correct
32 Correct 1 ms 4636 KB Output is correct
33 Correct 3 ms 4596 KB Output is correct
34 Correct 2 ms 4584 KB Output is correct
35 Correct 3 ms 4584 KB Output is correct
36 Correct 2 ms 4588 KB Output is correct
37 Correct 3 ms 4588 KB Output is correct
38 Correct 2 ms 4588 KB Output is correct
39 Correct 3 ms 4596 KB Output is correct
40 Correct 3 ms 4596 KB Output is correct
41 Correct 3 ms 4596 KB Output is correct
42 Correct 3 ms 4588 KB Output is correct
43 Correct 2 ms 4588 KB Output is correct
44 Correct 3 ms 4580 KB Output is correct
45 Correct 2 ms 4584 KB Output is correct
46 Correct 3 ms 4568 KB Output is correct
47 Correct 1 ms 4588 KB Output is correct
48 Correct 3 ms 4516 KB Output is correct
49 Correct 2 ms 4588 KB Output is correct
50 Correct 2 ms 4592 KB Output is correct
51 Correct 2 ms 4584 KB Output is correct
52 Correct 2 ms 4516 KB Output is correct
53 Correct 2 ms 4564 KB Output is correct
54 Correct 3 ms 4596 KB Output is correct
55 Correct 2 ms 4592 KB Output is correct
56 Correct 2 ms 4596 KB Output is correct
57 Correct 3 ms 4588 KB Output is correct
58 Correct 2 ms 4588 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4592 KB Output is correct
2 Correct 2 ms 4584 KB Output is correct
3 Correct 3 ms 4588 KB Output is correct
4 Correct 3 ms 4564 KB Output is correct
5 Correct 2 ms 4596 KB Output is correct
6 Correct 3 ms 4588 KB Output is correct
7 Correct 2 ms 4596 KB Output is correct
8 Correct 3 ms 4540 KB Output is correct
9 Correct 1 ms 4596 KB Output is correct
10 Correct 1 ms 4564 KB Output is correct
11 Correct 2 ms 4588 KB Output is correct
12 Correct 3 ms 4588 KB Output is correct
13 Correct 2 ms 4588 KB Output is correct
14 Correct 3 ms 4516 KB Output is correct
15 Correct 3 ms 4588 KB Output is correct
16 Correct 3 ms 4588 KB Output is correct
17 Correct 3 ms 4588 KB Output is correct
18 Correct 2 ms 4584 KB Output is correct
19 Correct 3 ms 4588 KB Output is correct
20 Correct 3 ms 4588 KB Output is correct
21 Correct 3 ms 4596 KB Output is correct
22 Correct 3 ms 4600 KB Output is correct
23 Correct 2 ms 4596 KB Output is correct
24 Correct 3 ms 4584 KB Output is correct
25 Correct 3 ms 4568 KB Output is correct
26 Correct 3 ms 4588 KB Output is correct
27 Correct 2 ms 4588 KB Output is correct
28 Correct 3 ms 4600 KB Output is correct
29 Correct 1 ms 4568 KB Output is correct
30 Correct 3 ms 4588 KB Output is correct
31 Correct 2 ms 4584 KB Output is correct
32 Correct 1 ms 4636 KB Output is correct
33 Correct 3 ms 4596 KB Output is correct
34 Correct 2 ms 4584 KB Output is correct
35 Correct 3 ms 4584 KB Output is correct
36 Correct 2 ms 4588 KB Output is correct
37 Correct 3 ms 4588 KB Output is correct
38 Correct 2 ms 4588 KB Output is correct
39 Correct 3 ms 4596 KB Output is correct
40 Correct 3 ms 4596 KB Output is correct
41 Correct 3 ms 4596 KB Output is correct
42 Correct 3 ms 4588 KB Output is correct
43 Correct 2 ms 4588 KB Output is correct
44 Correct 3 ms 4580 KB Output is correct
45 Correct 2 ms 4584 KB Output is correct
46 Correct 3 ms 4568 KB Output is correct
47 Correct 1 ms 4588 KB Output is correct
48 Correct 3 ms 4516 KB Output is correct
49 Correct 2 ms 4588 KB Output is correct
50 Correct 2 ms 4592 KB Output is correct
51 Correct 2 ms 4584 KB Output is correct
52 Correct 2 ms 4516 KB Output is correct
53 Correct 2 ms 4564 KB Output is correct
54 Correct 3 ms 4596 KB Output is correct
55 Correct 2 ms 4592 KB Output is correct
56 Correct 2 ms 4596 KB Output is correct
57 Correct 3 ms 4588 KB Output is correct
58 Correct 2 ms 4588 KB Output is correct
59 Correct 2 ms 4588 KB Output is correct
60 Correct 3 ms 4588 KB Output is correct
61 Correct 3 ms 4628 KB Output is correct
62 Correct 3 ms 4536 KB Output is correct
63 Correct 3 ms 4588 KB Output is correct
64 Correct 4 ms 4588 KB Output is correct
65 Correct 3 ms 4588 KB Output is correct
66 Correct 4 ms 4576 KB Output is correct
67 Correct 3 ms 4588 KB Output is correct
68 Correct 3 ms 4588 KB Output is correct
69 Correct 2 ms 4568 KB Output is correct
70 Correct 3 ms 4588 KB Output is correct
71 Correct 3 ms 4588 KB Output is correct
72 Correct 3 ms 4716 KB Output is correct
73 Correct 3 ms 4580 KB Output is correct
74 Correct 2 ms 4560 KB Output is correct
75 Correct 2 ms 4588 KB Output is correct
76 Correct 3 ms 4588 KB Output is correct
77 Correct 3 ms 4592 KB Output is correct
78 Correct 3 ms 4580 KB Output is correct
79 Correct 2 ms 4588 KB Output is correct
80 Correct 3 ms 4568 KB Output is correct
81 Correct 3 ms 4596 KB Output is correct
82 Correct 2 ms 4588 KB Output is correct
83 Correct 2 ms 4592 KB Output is correct
84 Correct 2 ms 4588 KB Output is correct
85 Correct 3 ms 4588 KB Output is correct
86 Correct 3 ms 4596 KB Output is correct
87 Correct 3 ms 4604 KB Output is correct
88 Correct 2 ms 4596 KB Output is correct
89 Correct 2 ms 4520 KB Output is correct
90 Correct 2 ms 4604 KB Output is correct
91 Correct 3 ms 4584 KB Output is correct
92 Correct 3 ms 4692 KB Output is correct
93 Correct 3 ms 4584 KB Output is correct
94 Correct 3 ms 4584 KB Output is correct
95 Correct 3 ms 4588 KB Output is correct
96 Correct 3 ms 4516 KB Output is correct
97 Correct 3 ms 4588 KB Output is correct
98 Correct 2 ms 4588 KB Output is correct
99 Correct 2 ms 4584 KB Output is correct
100 Correct 3 ms 4568 KB Output is correct
101 Correct 3 ms 4588 KB Output is correct
102 Correct 3 ms 4584 KB Output is correct
103 Correct 2 ms 4588 KB Output is correct
104 Correct 1 ms 4584 KB Output is correct
105 Correct 3 ms 4596 KB Output is correct
106 Correct 2 ms 4588 KB Output is correct
107 Correct 3 ms 4640 KB Output is correct
108 Correct 3 ms 4588 KB Output is correct
109 Correct 3 ms 4628 KB Output is correct
110 Correct 2 ms 4596 KB Output is correct
111 Correct 2 ms 4588 KB Output is correct
112 Correct 3 ms 4588 KB Output is correct
113 Correct 1 ms 4588 KB Output is correct
114 Correct 3 ms 4588 KB Output is correct
115 Correct 3 ms 4588 KB Output is correct
116 Correct 2 ms 4588 KB Output is correct
117 Correct 3 ms 4588 KB Output is correct
118 Correct 3 ms 4576 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 620 ms 25396 KB Output is correct : V - N = 12
2 Correct 417 ms 22804 KB Output is correct : V - N = 12
3 Correct 230 ms 12880 KB Output is correct : V - N = 12
4 Correct 8 ms 5012 KB Output is correct : V - N = 12
5 Correct 100 ms 9228 KB Output is correct : V - N = 12
6 Correct 488 ms 21192 KB Output is correct : V - N = 12
7 Correct 744 ms 25156 KB Output is correct : V - N = 12
8 Correct 441 ms 24036 KB Output is correct : V - N = 12
9 Correct 325 ms 14392 KB Output is correct : V - N = 12
10 Correct 45 ms 6248 KB Output is correct : V - N = 12
11 Correct 43 ms 7084 KB Output is correct : V - N = 12
12 Correct 373 ms 16236 KB Output is correct : V - N = 12
13 Correct 522 ms 24544 KB Output is correct : V - N = 12
14 Correct 489 ms 24996 KB Output is correct : V - N = 12
15 Correct 442 ms 20292 KB Output is correct : V - N = 12
16 Correct 77 ms 7800 KB Output is correct : V - N = 12
17 Correct 17 ms 5536 KB Output is correct : V - N = 12
18 Correct 169 ms 13660 KB Output is correct : V - N = 12
19 Correct 625 ms 23304 KB Output is correct : V - N = 12
20 Correct 698 ms 25484 KB Output is correct : V - N = 12
21 Correct 211 ms 11208 KB Output is correct : V - N = 12
22 Correct 99 ms 9472 KB Output is correct : V - N = 12
23 Correct 47 ms 6988 KB Output is correct : V - N = 12
24 Correct 4 ms 4852 KB Output is correct : V - N = 12
25 Correct 27 ms 6120 KB Output is correct : V - N = 12
26 Correct 81 ms 9092 KB Output is correct : V - N = 12
27 Correct 163 ms 10168 KB Output is correct : V - N = 12
28 Correct 192 ms 9780 KB Output is correct : V - N = 12
29 Correct 89 ms 7492 KB Output is correct : V - N = 12
30 Correct 7 ms 5156 KB Output is correct : V - N = 12
31 Correct 7 ms 4956 KB Output is correct : V - N = 12
32 Correct 7 ms 5080 KB Output is correct : V - N = 12
33 Correct 8 ms 4948 KB Output is correct : V - N = 12
34 Correct 7 ms 4904 KB Output is correct : V - N = 12
35 Correct 7 ms 5080 KB Output is correct : V - N = 12
36 Correct 580 ms 25448 KB Output is correct : V - N = 12
37 Correct 742 ms 25568 KB Output is correct : V - N = 12
38 Correct 663 ms 25256 KB Output is correct : V - N = 12
39 Correct 482 ms 25444 KB Output is correct : V - N = 12
40 Correct 465 ms 25272 KB Output is correct : V - N = 12
41 Correct 85 ms 9176 KB Output is correct : V - N = 12
42 Correct 70 ms 8120 KB Output is correct : V - N = 12
43 Correct 119 ms 8884 KB Output is correct : V - N = 12
44 Correct 7 ms 5108 KB Output is correct : V - N = 12
45 Correct 48 ms 7140 KB Output is correct : V - N = 12
46 Correct 186 ms 13048 KB Output is correct : V - N = 12
47 Correct 86 ms 9148 KB Output is correct : V - N = 12
48 Correct 311 ms 14604 KB Output is correct : V - N = 12
49 Correct 61 ms 6908 KB Output is correct : V - N = 12
50 Correct 16 ms 5652 KB Output is correct : V - N = 12
51 Correct 505 ms 22660 KB Output is correct : V - N = 12
52 Correct 8 ms 5212 KB Output is correct : V - N = 12
53 Correct 355 ms 20948 KB Output is correct : V - N = 12
54 Correct 431 ms 23668 KB Output is correct : V - N = 12
55 Correct 41 ms 6292 KB Output is correct : V - N = 12
56 Correct 344 ms 15980 KB Output is correct : V - N = 12
57 Correct 644 ms 24476 KB Output is correct : V - N = 12
58 Correct 98 ms 7772 KB Output is correct : V - N = 12
59 Correct 176 ms 13492 KB Output is correct : V - N = 12
60 Correct 474 ms 24860 KB Output is correct : V - N = 12
61 Correct 3 ms 4572 KB Output is correct : V - N = 12
62 Correct 3 ms 4592 KB Output is correct : V - N = 12
63 Correct 3 ms 4596 KB Output is correct : V - N = 12
64 Correct 3 ms 4592 KB Output is correct : V - N = 12
65 Correct 3 ms 4512 KB Output is correct : V - N = 12
66 Correct 3 ms 4588 KB Output is correct : V - N = 12
67 Correct 3 ms 4588 KB Output is correct : V - N = 12
68 Correct 3 ms 4588 KB Output is correct : V - N = 12
69 Correct 3 ms 4584 KB Output is correct : V - N = 12
70 Correct 2 ms 4584 KB Output is correct : V - N = 12
71 Correct 3 ms 4588 KB Output is correct : V - N = 12
72 Correct 3 ms 4584 KB Output is correct : V - N = 12
73 Correct 3 ms 4596 KB Output is correct : V - N = 12
74 Correct 3 ms 4652 KB Output is correct : V - N = 12
75 Correct 3 ms 4616 KB Output is correct : V - N = 12
76 Correct 3 ms 4588 KB Output is correct : V - N = 12
77 Correct 2 ms 4572 KB Output is correct : V - N = 12
78 Correct 3 ms 4588 KB Output is correct : V - N = 12
79 Correct 3 ms 4516 KB Output is correct : V - N = 12
80 Correct 3 ms 4588 KB Output is correct : V - N = 12
81 Correct 3 ms 4588 KB Output is correct : V - N = 12
82 Correct 3 ms 4544 KB Output is correct : V - N = 12
83 Correct 3 ms 4588 KB Output is correct : V - N = 12
84 Correct 2 ms 4588 KB Output is correct : V - N = 12
85 Correct 3 ms 4588 KB Output is correct : V - N = 12
86 Correct 3 ms 4716 KB Output is correct : V - N = 12
87 Correct 3 ms 4596 KB Output is correct : V - N = 12
88 Correct 3 ms 4588 KB Output is correct : V - N = 12
89 Correct 3 ms 4588 KB Output is correct : V - N = 12
90 Correct 3 ms 4588 KB Output is correct : V - N = 12
91 Correct 3 ms 4584 KB Output is correct : V - N = 12
92 Correct 3 ms 4576 KB Output is correct : V - N = 12
93 Correct 2 ms 4516 KB Output is correct : V - N = 12
94 Correct 3 ms 4564 KB Output is correct : V - N = 12
95 Correct 3 ms 4516 KB Output is correct : V - N = 12
96 Correct 3 ms 4624 KB Output is correct : V - N = 12
97 Correct 3 ms 4588 KB Output is correct : V - N = 12
98 Correct 3 ms 4588 KB Output is correct : V - N = 12
99 Correct 3 ms 4596 KB Output is correct : V - N = 12
100 Correct 3 ms 4568 KB Output is correct : V - N = 12
101 Correct 2 ms 4588 KB Output is correct : V - N = 12
102 Correct 3 ms 4588 KB Output is correct : V - N = 12
103 Correct 2 ms 4588 KB Output is correct : V - N = 12
104 Correct 3 ms 4516 KB Output is correct : V - N = 12
105 Correct 3 ms 4516 KB Output is correct : V - N = 12
106 Correct 3 ms 4588 KB Output is correct : V - N = 12
107 Correct 3 ms 4596 KB Output is correct : V - N = 12
108 Correct 3 ms 4596 KB Output is correct : V - N = 12
109 Correct 2 ms 4596 KB Output is correct : V - N = 12
110 Correct 3 ms 4588 KB Output is correct : V - N = 12
111 Correct 3 ms 4588 KB Output is correct : V - N = 12
112 Correct 2 ms 4588 KB Output is correct : V - N = 12
113 Correct 2 ms 4588 KB Output is correct : V - N = 12
114 Correct 3 ms 4588 KB Output is correct : V - N = 12
115 Correct 2 ms 4596 KB Output is correct : V - N = 12
116 Correct 3 ms 4588 KB Output is correct : V - N = 12
117 Correct 2 ms 4596 KB Output is correct : V - N = 12
118 Correct 3 ms 4568 KB Output is correct : V - N = 12
119 Correct 3 ms 4516 KB Output is correct : V - N = 12
120 Correct 2 ms 4588 KB Output is correct : V - N = 12
121 Correct 2 ms 4588 KB Output is correct : V - N = 12
122 Correct 3 ms 4588 KB Output is correct : V - N = 12
123 Correct 3 ms 4588 KB Output is correct : V - N = 12
124 Correct 2 ms 4600 KB Output is correct : V - N = 12
125 Correct 2 ms 4596 KB Output is correct : V - N = 12
126 Correct 2 ms 4588 KB Output is correct : V - N = 12
127 Correct 3 ms 4532 KB Output is correct : V - N = 12
128 Correct 1 ms 4596 KB Output is correct : V - N = 12
129 Correct 3 ms 4592 KB Output is correct : V - N = 12
130 Correct 1 ms 4584 KB Output is correct : V - N = 12
131 Correct 3 ms 4596 KB Output is correct : V - N = 12
132 Correct 3 ms 4588 KB Output is correct : V - N = 12
133 Correct 3 ms 4588 KB Output is correct : V - N = 12
134 Correct 2 ms 4512 KB Output is correct : V - N = 12
135 Correct 2 ms 4528 KB Output is correct : V - N = 12
136 Correct 3 ms 4588 KB Output is correct : V - N = 12
137 Correct 1 ms 4596 KB Output is correct : V - N = 12
138 Correct 3 ms 4588 KB Output is correct : V - N = 12
139 Correct 3 ms 4588 KB Output is correct : V - N = 12
140 Correct 3 ms 4588 KB Output is correct : V - N = 12
141 Correct 3 ms 4588 KB Output is correct : V - N = 12
142 Correct 3 ms 4584 KB Output is correct : V - N = 12
143 Correct 2 ms 4588 KB Output is correct : V - N = 12
144 Correct 2 ms 4560 KB Output is correct : V - N = 12
145 Correct 3 ms 4588 KB Output is correct : V - N = 12
146 Correct 3 ms 4588 KB Output is correct : V - N = 12
147 Correct 3 ms 4668 KB Output is correct : V - N = 12
148 Correct 3 ms 4500 KB Output is correct : V - N = 12
149 Correct 2 ms 4588 KB Output is correct : V - N = 12
150 Correct 3 ms 4584 KB Output is correct : V - N = 12
151 Correct 2 ms 4580 KB Output is correct : V - N = 12
152 Correct 3 ms 4580 KB Output is correct : V - N = 12
153 Correct 3 ms 4584 KB Output is correct : V - N = 12
154 Correct 3 ms 4532 KB Output is correct : V - N = 12
155 Correct 3 ms 4584 KB Output is correct : V - N = 12
156 Correct 1 ms 4596 KB Output is correct : V - N = 12
157 Correct 2 ms 4668 KB Output is correct : V - N = 12
158 Correct 3 ms 4632 KB Output is correct : V - N = 12
159 Correct 3 ms 4524 KB Output is correct : V - N = 12
160 Correct 2 ms 4588 KB Output is correct : V - N = 12
161 Correct 2 ms 4596 KB Output is correct : V - N = 12
162 Correct 3 ms 4580 KB Output is correct : V - N = 12
163 Correct 3 ms 4584 KB Output is correct : V - N = 12
164 Correct 3 ms 4556 KB Output is correct : V - N = 12
165 Correct 1 ms 4584 KB Output is correct : V - N = 12
166 Correct 2 ms 4604 KB Output is correct : V - N = 12
167 Correct 2 ms 4588 KB Output is correct : V - N = 12
168 Correct 3 ms 4500 KB Output is correct : V - N = 12
169 Correct 3 ms 4516 KB Output is correct : V - N = 12
170 Correct 2 ms 4580 KB Output is correct : V - N = 12
171 Correct 3 ms 4564 KB Output is correct : V - N = 12
172 Correct 2 ms 4588 KB Output is correct : V - N = 12
173 Correct 2 ms 4584 KB Output is correct : V - N = 12
174 Correct 1 ms 4596 KB Output is correct : V - N = 12
175 Correct 3 ms 4596 KB Output is correct : V - N = 12
176 Correct 3 ms 4712 KB Output is correct : V - N = 12
177 Correct 3 ms 4564 KB Output is correct : V - N = 12
178 Correct 3 ms 4588 KB Output is correct : V - N = 12