Submission #1072296

# Submission time Handle Problem Language Result Execution time Memory
1072296 2024-08-23T16:37:58 Z abczz Airline Route Map (JOI18_airline) C++17
100 / 100
472 ms 42120 KB
#include "Alicelib.h"
#include <cassert>
#include <cstdio>
#include <iostream>
#include <array>
#include <vector>
#define ll long long
 
using namespace std;
 
void Alice( int N, int M, int A[], int B[] ){
	vector <array<ll, 2>> V;
	ll k = N, tot = 0, cnt = N;
	while (k) {
		k /= 2;
		++tot;
	}
	for (int i=0; i<M; ++i) {
		V.push_back({A[i], B[i]});
	}
	k = 1;
	if (tot != 10) {
    V.push_back({cnt, cnt+1});
	  ++cnt;
  }
	for (int i=0; i<tot; ++i) {
		for (int j=0; j<N; ++j) {
			if ((j+1) & k) V.push_back({cnt, j});
		}
		if (i != tot-1) V.push_back({cnt, cnt+1});
		++cnt, k *= 2;
	}
	for (int i=0; i<cnt; ++i) {
		V.push_back({i, cnt});
	}
	if (N < 10) {
		for (int i=1; i<5; ++i) {
			++cnt;
			V.push_back({cnt-i, cnt});
		}
	}
	++cnt;
	for (int j=N; j<N+tot+(tot != 10 ? 1 : 0); ++j) {
		V.push_back({j, cnt});
	}
	++cnt;
	InitG(cnt, V.size());
	int i = 0;
	for (auto [a, b] : V) {
		//cout << a << " " << b << endl;
		MakeG(i++, a, b);
	}
}
#include "Boblib.h"
#include <cassert>
#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
#include <array>
#define ll long long
 
using namespace std;
 
ll in[2000], F[2000];
bool B[2000], G[2000];
vector <ll> adj[2000];
vector <array<ll, 2> > V, X;
ll n, x, z, rt = 0;
 
void dfs(ll u, ll p, ll k) {
	for (auto v : adj[u]) {
		if (!G[v] && v != rt && v != z) {
			F[v] += k;
		}
	}
	for (auto v : adj[u]) {
		if (G[v] && v != p) dfs(v, u, (!k ? 1 : k*2));
	}
}
void Bob( int Z, int U, int C[], int D[] ){
	n = Z;
	V.clear();
	X.clear();
	for (int i=0; i<n; ++i) in[i] = B[i] = F[i] = G[i] = 0, adj[i].clear();
	for (int i=0; i<U; ++i) {
		++in[C[i]], ++in[D[i]];
		adj[C[i]].push_back(D[i]);
		adj[D[i]].push_back(C[i]);
	}
	x = 0;
	for (int i=0; i<n; ++i) {
		if (in[i] == 1) --x;
		if (in[i] == n-2) {
			rt = i;
		}
	}
	B[rt] = 1;
	for (auto v : adj[rt]) {
		B[v] = 1;
	}
	z = rt;
	for (int i=0; i<n; ++i) {
		if (!B[i]) {
			rt = i;
			break;
		}
	}
	x += Z-2-adj[rt].size();
	for (auto v : adj[rt]) {
		in[v] -= 2;
		//cout << v << " " << in[v] << endl;
		G[v] = 1;
	}
  bool ok = 0;
	for (auto v : adj[rt]) {
		if (in[v] == 1) {
      ok = 1;
			dfs(v, -1, 0);
			break;
		}
	}
  if (!ok) {
    ll mx = -1, id = -1, deg;
    for (auto v : adj[rt]) {
      deg = 0;
      for (auto x : adj[v]) {
        if (G[x]) ++deg;
      }
      if (deg == 1 && mx < in[v]) {
        mx = in[v];
        id = v;
      }
    }
    dfs(id, -1, 1);
  }
	/*for (int i=0; i<n; ++i) {
		cout << F[i] << " ";
	}
	cout << endl;*/
	for (int i=0; i<U; ++i) {
		if (F[C[i]] && F[D[i]]) {
			//cout << F[C[i]]-1 << " " << F[D[i]]-1 << endl;
			V.push_back({F[C[i]]-1, F[D[i]]-1});
		}
	}
	InitMap(x, V.size());
	for (auto [a, b] : V) {
		MakeMap(a, b);
	}
}

Compilation message

Bob.cpp: In function 'void Bob(int, int, int*, int*)':
Bob.cpp:32:46: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   32 |  for (int i=0; i<n; ++i) in[i] = B[i] = F[i] = G[i] = 0, adj[i].clear();
      |                                         ~~~~~^~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 4884 KB Output is correct
2 Correct 3 ms 4888 KB Output is correct
3 Correct 3 ms 5132 KB Output is correct
4 Correct 3 ms 4884 KB Output is correct
5 Correct 1 ms 4884 KB Output is correct
6 Correct 2 ms 4884 KB Output is correct
7 Correct 2 ms 4892 KB Output is correct
8 Correct 1 ms 4888 KB Output is correct
9 Correct 2 ms 4888 KB Output is correct
10 Correct 3 ms 4880 KB Output is correct
11 Correct 3 ms 4888 KB Output is correct
12 Correct 3 ms 4888 KB Output is correct
13 Correct 3 ms 4892 KB Output is correct
14 Correct 1 ms 4884 KB Output is correct
15 Correct 4 ms 4888 KB Output is correct
16 Correct 2 ms 4880 KB Output is correct
17 Correct 2 ms 4892 KB Output is correct
18 Correct 1 ms 4888 KB Output is correct
19 Correct 3 ms 4888 KB Output is correct
20 Correct 2 ms 6164 KB Output is correct
21 Correct 3 ms 4888 KB Output is correct
22 Correct 1 ms 4888 KB Output is correct
23 Correct 2 ms 4888 KB Output is correct
24 Correct 2 ms 4884 KB Output is correct
25 Correct 3 ms 4884 KB Output is correct
26 Correct 2 ms 4888 KB Output is correct
27 Correct 4 ms 4884 KB Output is correct
28 Correct 3 ms 4888 KB Output is correct
29 Correct 3 ms 4884 KB Output is correct
30 Correct 3 ms 4888 KB Output is correct
31 Correct 1 ms 6164 KB Output is correct
32 Correct 2 ms 4884 KB Output is correct
33 Correct 2 ms 4884 KB Output is correct
34 Correct 2 ms 4880 KB Output is correct
35 Correct 3 ms 4884 KB Output is correct
36 Correct 4 ms 4888 KB Output is correct
37 Correct 3 ms 4884 KB Output is correct
38 Correct 2 ms 4884 KB Output is correct
39 Correct 2 ms 4888 KB Output is correct
40 Correct 2 ms 4888 KB Output is correct
41 Correct 1 ms 4888 KB Output is correct
42 Correct 3 ms 4888 KB Output is correct
43 Correct 2 ms 6168 KB Output is correct
44 Correct 1 ms 4880 KB Output is correct
45 Correct 2 ms 4884 KB Output is correct
46 Correct 2 ms 4884 KB Output is correct
47 Correct 2 ms 4884 KB Output is correct
48 Correct 2 ms 4884 KB Output is correct
49 Correct 2 ms 4888 KB Output is correct
50 Correct 4 ms 4884 KB Output is correct
51 Correct 1 ms 4884 KB Output is correct
52 Correct 2 ms 4888 KB Output is correct
53 Correct 3 ms 6896 KB Output is correct
54 Correct 3 ms 4884 KB Output is correct
55 Correct 3 ms 4888 KB Output is correct
56 Correct 2 ms 4888 KB Output is correct
57 Correct 2 ms 4888 KB Output is correct
58 Correct 1 ms 4888 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 4884 KB Output is correct
2 Correct 3 ms 4888 KB Output is correct
3 Correct 3 ms 5132 KB Output is correct
4 Correct 3 ms 4884 KB Output is correct
5 Correct 1 ms 4884 KB Output is correct
6 Correct 2 ms 4884 KB Output is correct
7 Correct 2 ms 4892 KB Output is correct
8 Correct 1 ms 4888 KB Output is correct
9 Correct 2 ms 4888 KB Output is correct
10 Correct 3 ms 4880 KB Output is correct
11 Correct 3 ms 4888 KB Output is correct
12 Correct 3 ms 4888 KB Output is correct
13 Correct 3 ms 4892 KB Output is correct
14 Correct 1 ms 4884 KB Output is correct
15 Correct 4 ms 4888 KB Output is correct
16 Correct 2 ms 4880 KB Output is correct
17 Correct 2 ms 4892 KB Output is correct
18 Correct 1 ms 4888 KB Output is correct
19 Correct 3 ms 4888 KB Output is correct
20 Correct 2 ms 6164 KB Output is correct
21 Correct 3 ms 4888 KB Output is correct
22 Correct 1 ms 4888 KB Output is correct
23 Correct 2 ms 4888 KB Output is correct
24 Correct 2 ms 4884 KB Output is correct
25 Correct 3 ms 4884 KB Output is correct
26 Correct 2 ms 4888 KB Output is correct
27 Correct 4 ms 4884 KB Output is correct
28 Correct 3 ms 4888 KB Output is correct
29 Correct 3 ms 4884 KB Output is correct
30 Correct 3 ms 4888 KB Output is correct
31 Correct 1 ms 6164 KB Output is correct
32 Correct 2 ms 4884 KB Output is correct
33 Correct 2 ms 4884 KB Output is correct
34 Correct 2 ms 4880 KB Output is correct
35 Correct 3 ms 4884 KB Output is correct
36 Correct 4 ms 4888 KB Output is correct
37 Correct 3 ms 4884 KB Output is correct
38 Correct 2 ms 4884 KB Output is correct
39 Correct 2 ms 4888 KB Output is correct
40 Correct 2 ms 4888 KB Output is correct
41 Correct 1 ms 4888 KB Output is correct
42 Correct 3 ms 4888 KB Output is correct
43 Correct 2 ms 6168 KB Output is correct
44 Correct 1 ms 4880 KB Output is correct
45 Correct 2 ms 4884 KB Output is correct
46 Correct 2 ms 4884 KB Output is correct
47 Correct 2 ms 4884 KB Output is correct
48 Correct 2 ms 4884 KB Output is correct
49 Correct 2 ms 4888 KB Output is correct
50 Correct 4 ms 4884 KB Output is correct
51 Correct 1 ms 4884 KB Output is correct
52 Correct 2 ms 4888 KB Output is correct
53 Correct 3 ms 6896 KB Output is correct
54 Correct 3 ms 4884 KB Output is correct
55 Correct 3 ms 4888 KB Output is correct
56 Correct 2 ms 4888 KB Output is correct
57 Correct 2 ms 4888 KB Output is correct
58 Correct 1 ms 4888 KB Output is correct
59 Correct 3 ms 4888 KB Output is correct
60 Correct 3 ms 4884 KB Output is correct
61 Correct 2 ms 4896 KB Output is correct
62 Correct 3 ms 4888 KB Output is correct
63 Correct 2 ms 4884 KB Output is correct
64 Correct 3 ms 4888 KB Output is correct
65 Correct 3 ms 4880 KB Output is correct
66 Correct 3 ms 4888 KB Output is correct
67 Correct 3 ms 4880 KB Output is correct
68 Correct 3 ms 7000 KB Output is correct
69 Correct 3 ms 6928 KB Output is correct
70 Correct 3 ms 4888 KB Output is correct
71 Correct 4 ms 4892 KB Output is correct
72 Correct 3 ms 4888 KB Output is correct
73 Correct 2 ms 4884 KB Output is correct
74 Correct 2 ms 4884 KB Output is correct
75 Correct 1 ms 4896 KB Output is correct
76 Correct 3 ms 4888 KB Output is correct
77 Correct 2 ms 4884 KB Output is correct
78 Correct 3 ms 4888 KB Output is correct
79 Correct 3 ms 4896 KB Output is correct
80 Correct 3 ms 4884 KB Output is correct
81 Correct 2 ms 6928 KB Output is correct
82 Correct 2 ms 4884 KB Output is correct
83 Correct 3 ms 4864 KB Output is correct
84 Correct 3 ms 4888 KB Output is correct
85 Correct 3 ms 4884 KB Output is correct
86 Correct 3 ms 4884 KB Output is correct
87 Correct 2 ms 4888 KB Output is correct
88 Correct 2 ms 4888 KB Output is correct
89 Correct 3 ms 6928 KB Output is correct
90 Correct 1 ms 4884 KB Output is correct
91 Correct 3 ms 4892 KB Output is correct
92 Correct 1 ms 4884 KB Output is correct
93 Correct 2 ms 6928 KB Output is correct
94 Correct 3 ms 4888 KB Output is correct
95 Correct 3 ms 4884 KB Output is correct
96 Correct 3 ms 4888 KB Output is correct
97 Correct 3 ms 4888 KB Output is correct
98 Correct 3 ms 4888 KB Output is correct
99 Correct 2 ms 4888 KB Output is correct
100 Correct 2 ms 4896 KB Output is correct
101 Correct 3 ms 4892 KB Output is correct
102 Correct 1 ms 4880 KB Output is correct
103 Correct 1 ms 4888 KB Output is correct
104 Correct 3 ms 6164 KB Output is correct
105 Correct 2 ms 4888 KB Output is correct
106 Correct 2 ms 4888 KB Output is correct
107 Correct 1 ms 4888 KB Output is correct
108 Correct 3 ms 4888 KB Output is correct
109 Correct 2 ms 4888 KB Output is correct
110 Correct 1 ms 4888 KB Output is correct
111 Correct 4 ms 4892 KB Output is correct
112 Correct 3 ms 4888 KB Output is correct
113 Correct 3 ms 4888 KB Output is correct
114 Correct 2 ms 4880 KB Output is correct
115 Correct 3 ms 4884 KB Output is correct
116 Correct 1 ms 4888 KB Output is correct
117 Correct 3 ms 4888 KB Output is correct
118 Correct 1 ms 4884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 417 ms 42072 KB Output is correct : V - N = 12
2 Correct 329 ms 37720 KB Output is correct : V - N = 12
3 Correct 132 ms 20280 KB Output is correct : V - N = 12
4 Correct 7 ms 5872 KB Output is correct : V - N = 12
5 Correct 69 ms 13284 KB Output is correct : V - N = 12
6 Correct 272 ms 37096 KB Output is correct : V - N = 12
7 Correct 355 ms 41548 KB Output is correct : V - N = 12
8 Correct 335 ms 39880 KB Output is correct : V - N = 12
9 Correct 174 ms 22140 KB Output is correct : V - N = 12
10 Correct 23 ms 7588 KB Output is correct : V - N = 12
11 Correct 33 ms 8860 KB Output is correct : V - N = 12
12 Correct 220 ms 25800 KB Output is correct : V - N = 12
13 Correct 381 ms 40252 KB Output is correct : V - N = 12
14 Correct 351 ms 40952 KB Output is correct : V - N = 12
15 Correct 217 ms 34988 KB Output is correct : V - N = 12
16 Correct 45 ms 10988 KB Output is correct : V - N = 12
17 Correct 10 ms 6560 KB Output is correct : V - N = 12
18 Correct 139 ms 20948 KB Output is correct : V - N = 12
19 Correct 363 ms 38612 KB Output is correct : V - N = 12
20 Correct 472 ms 41552 KB Output is correct : V - N = 12
21 Correct 97 ms 17800 KB Output is correct : V - N = 12
22 Correct 89 ms 13320 KB Output is correct : V - N = 12
23 Correct 40 ms 9888 KB Output is correct : V - N = 12
24 Correct 3 ms 5400 KB Output is correct : V - N = 12
25 Correct 16 ms 7100 KB Output is correct : V - N = 12
26 Correct 79 ms 12872 KB Output is correct : V - N = 12
27 Correct 97 ms 14588 KB Output is correct : V - N = 12
28 Correct 122 ms 13964 KB Output is correct : V - N = 12
29 Correct 53 ms 9620 KB Output is correct : V - N = 12
30 Correct 9 ms 5920 KB Output is correct : V - N = 12
31 Correct 5 ms 5404 KB Output is correct : V - N = 12
32 Correct 5 ms 5416 KB Output is correct : V - N = 12
33 Correct 5 ms 5408 KB Output is correct : V - N = 12
34 Correct 6 ms 5408 KB Output is correct : V - N = 12
35 Correct 6 ms 5408 KB Output is correct : V - N = 12
36 Correct 373 ms 42120 KB Output is correct : V - N = 12
37 Correct 380 ms 42036 KB Output is correct : V - N = 12
38 Correct 373 ms 42108 KB Output is correct : V - N = 12
39 Correct 422 ms 42036 KB Output is correct : V - N = 12
40 Correct 406 ms 41908 KB Output is correct : V - N = 12
41 Correct 59 ms 12780 KB Output is correct : V - N = 12
42 Correct 46 ms 11248 KB Output is correct : V - N = 12
43 Correct 59 ms 12836 KB Output is correct : V - N = 12
44 Correct 6 ms 5408 KB Output is correct : V - N = 12
45 Correct 36 ms 9104 KB Output is correct : V - N = 12
46 Correct 169 ms 20352 KB Output is correct : V - N = 12
47 Correct 65 ms 12788 KB Output is correct : V - N = 12
48 Correct 186 ms 22556 KB Output is correct : V - N = 12
49 Correct 28 ms 8880 KB Output is correct : V - N = 12
50 Correct 12 ms 6540 KB Output is correct : V - N = 12
51 Correct 297 ms 37512 KB Output is correct : V - N = 12
52 Correct 7 ms 5888 KB Output is correct : V - N = 12
53 Correct 239 ms 35328 KB Output is correct : V - N = 12
54 Correct 337 ms 39064 KB Output is correct : V - N = 12
55 Correct 19 ms 7120 KB Output is correct : V - N = 12
56 Correct 188 ms 24960 KB Output is correct : V - N = 12
57 Correct 372 ms 40652 KB Output is correct : V - N = 12
58 Correct 51 ms 10396 KB Output is correct : V - N = 12
59 Correct 142 ms 20968 KB Output is correct : V - N = 12
60 Correct 371 ms 41076 KB Output is correct : V - N = 12
61 Correct 3 ms 4892 KB Output is correct : V - N = 9
62 Correct 3 ms 4888 KB Output is correct : V - N = 9
63 Correct 3 ms 4884 KB Output is correct : V - N = 9
64 Correct 3 ms 4896 KB Output is correct : V - N = 9
65 Correct 3 ms 4884 KB Output is correct : V - N = 9
66 Correct 3 ms 4884 KB Output is correct : V - N = 9
67 Correct 3 ms 4888 KB Output is correct : V - N = 9
68 Correct 3 ms 4888 KB Output is correct : V - N = 9
69 Correct 3 ms 4888 KB Output is correct : V - N = 9
70 Correct 3 ms 4888 KB Output is correct : V - N = 9
71 Correct 3 ms 4884 KB Output is correct : V - N = 9
72 Correct 3 ms 6172 KB Output is correct : V - N = 9
73 Correct 3 ms 4892 KB Output is correct : V - N = 9
74 Correct 3 ms 4888 KB Output is correct : V - N = 9
75 Correct 3 ms 4888 KB Output is correct : V - N = 9
76 Correct 3 ms 4884 KB Output is correct : V - N = 9
77 Correct 1 ms 4888 KB Output is correct : V - N = 9
78 Correct 3 ms 8212 KB Output is correct : V - N = 9
79 Correct 3 ms 4884 KB Output is correct : V - N = 9
80 Correct 3 ms 4884 KB Output is correct : V - N = 9
81 Correct 3 ms 5132 KB Output is correct : V - N = 8
82 Correct 3 ms 4780 KB Output is correct : V - N = 8
83 Correct 3 ms 4888 KB Output is correct : V - N = 9
84 Correct 2 ms 4900 KB Output is correct : V - N = 9
85 Correct 2 ms 4888 KB Output is correct : V - N = 9
86 Correct 2 ms 4888 KB Output is correct : V - N = 9
87 Correct 3 ms 4900 KB Output is correct : V - N = 9
88 Correct 3 ms 4884 KB Output is correct : V - N = 9
89 Correct 2 ms 4888 KB Output is correct : V - N = 9
90 Correct 2 ms 4888 KB Output is correct : V - N = 9
91 Correct 3 ms 6920 KB Output is correct : V - N = 9
92 Correct 2 ms 6928 KB Output is correct : V - N = 9
93 Correct 3 ms 4888 KB Output is correct : V - N = 9
94 Correct 3 ms 6924 KB Output is correct : V - N = 9
95 Correct 2 ms 4880 KB Output is correct : V - N = 9
96 Correct 3 ms 4888 KB Output is correct : V - N = 9
97 Correct 3 ms 4888 KB Output is correct : V - N = 9
98 Correct 3 ms 4888 KB Output is correct : V - N = 9
99 Correct 2 ms 6176 KB Output is correct : V - N = 9
100 Correct 3 ms 4888 KB Output is correct : V - N = 9
101 Correct 1 ms 4888 KB Output is correct : V - N = 9
102 Correct 3 ms 4888 KB Output is correct : V - N = 9
103 Correct 2 ms 4884 KB Output is correct : V - N = 9
104 Correct 2 ms 4880 KB Output is correct : V - N = 9
105 Correct 2 ms 4892 KB Output is correct : V - N = 9
106 Correct 3 ms 4892 KB Output is correct : V - N = 9
107 Correct 2 ms 6928 KB Output is correct : V - N = 9
108 Correct 3 ms 4884 KB Output is correct : V - N = 9
109 Correct 2 ms 4892 KB Output is correct : V - N = 9
110 Correct 3 ms 4880 KB Output is correct : V - N = 9
111 Correct 3 ms 4888 KB Output is correct : V - N = 9
112 Correct 3 ms 4888 KB Output is correct : V - N = 8
113 Correct 3 ms 4896 KB Output is correct : V - N = 8
114 Correct 3 ms 4884 KB Output is correct : V - N = 8
115 Correct 3 ms 4888 KB Output is correct : V - N = 8
116 Correct 3 ms 4884 KB Output is correct : V - N = 8
117 Correct 3 ms 4888 KB Output is correct : V - N = 9
118 Correct 2 ms 4888 KB Output is correct : V - N = 8
119 Correct 3 ms 4888 KB Output is correct : V - N = 9
120 Correct 3 ms 4892 KB Output is correct : V - N = 8
121 Correct 2 ms 6176 KB Output is correct : V - N = 7
122 Correct 3 ms 4888 KB Output is correct : V - N = 7
123 Correct 3 ms 4888 KB Output is correct : V - N = 7
124 Correct 3 ms 6928 KB Output is correct : V - N = 7
125 Correct 2 ms 4888 KB Output is correct : V - N = 7
126 Correct 1 ms 4888 KB Output is correct : V - N = 7
127 Correct 3 ms 4884 KB Output is correct : V - N = 7
128 Correct 1 ms 4896 KB Output is correct : V - N = 7
129 Correct 1 ms 4888 KB Output is correct : V - N = 7
130 Correct 3 ms 4892 KB Output is correct : V - N = 7
131 Correct 2 ms 4888 KB Output is correct : V - N = 7
132 Correct 1 ms 4884 KB Output is correct : V - N = 7
133 Correct 3 ms 4884 KB Output is correct : V - N = 7
134 Correct 2 ms 4888 KB Output is correct : V - N = 7
135 Correct 2 ms 4884 KB Output is correct : V - N = 7
136 Correct 3 ms 4888 KB Output is correct : V - N = 7
137 Correct 1 ms 4888 KB Output is correct : V - N = 7
138 Correct 2 ms 4884 KB Output is correct : V - N = 7
139 Correct 2 ms 4888 KB Output is correct : V - N = 7
140 Correct 2 ms 6168 KB Output is correct : V - N = 7
141 Correct 3 ms 4888 KB Output is correct : V - N = 11
142 Correct 2 ms 5388 KB Output is correct : V - N = 11
143 Correct 1 ms 4888 KB Output is correct : V - N = 11
144 Correct 3 ms 4884 KB Output is correct : V - N = 10
145 Correct 1 ms 4884 KB Output is correct : V - N = 10
146 Correct 1 ms 4800 KB Output is correct : V - N = 10
147 Correct 2 ms 6164 KB Output is correct : V - N = 10
148 Correct 3 ms 4888 KB Output is correct : V - N = 11
149 Correct 2 ms 4888 KB Output is correct : V - N = 11
150 Correct 3 ms 6928 KB Output is correct : V - N = 11
151 Correct 3 ms 4884 KB Output is correct : V - N = 7
152 Correct 3 ms 4884 KB Output is correct : V - N = 7
153 Correct 1 ms 6928 KB Output is correct : V - N = 7
154 Correct 2 ms 6936 KB Output is correct : V - N = 7
155 Correct 4 ms 6928 KB Output is correct : V - N = 7
156 Correct 1 ms 4896 KB Output is correct : V - N = 7
157 Correct 2 ms 4888 KB Output is correct : V - N = 7
158 Correct 2 ms 4888 KB Output is correct : V - N = 7
159 Correct 3 ms 4888 KB Output is correct : V - N = 7
160 Correct 3 ms 4888 KB Output is correct : V - N = 7
161 Correct 3 ms 6168 KB Output is correct : V - N = 7
162 Correct 2 ms 4884 KB Output is correct : V - N = 7
163 Correct 1 ms 4880 KB Output is correct : V - N = 7
164 Correct 3 ms 4880 KB Output is correct : V - N = 7
165 Correct 3 ms 6928 KB Output is correct : V - N = 7
166 Correct 1 ms 4884 KB Output is correct : V - N = 7
167 Correct 1 ms 4896 KB Output is correct : V - N = 7
168 Correct 1 ms 4896 KB Output is correct : V - N = 7
169 Correct 2 ms 4964 KB Output is correct : V - N = 7
170 Correct 2 ms 5136 KB Output is correct : V - N = 7
171 Correct 3 ms 6928 KB Output is correct : V - N = 8
172 Correct 1 ms 4888 KB Output is correct : V - N = 9
173 Correct 2 ms 6928 KB Output is correct : V - N = 9
174 Correct 2 ms 4896 KB Output is correct : V - N = 9
175 Correct 2 ms 4888 KB Output is correct : V - N = 9
176 Correct 1 ms 4888 KB Output is correct : V - N = 10
177 Correct 3 ms 4888 KB Output is correct : V - N = 10
178 Correct 2 ms 4888 KB Output is correct : V - N = 10