Submission #420494

# Submission time Handle Problem Language Result Execution time Memory
420494 2021-06-08T12:00:54 Z kostia244 Airline Route Map (JOI18_airline) C++17
100 / 100
846 ms 25072 KB
#include "Alicelib.h"
#include<bits/stdc++.h>
using namespace std;

void Alice(int n, int m, int A[], int B[] ){
	if(n < 3 || m == 0) {
		InitG(n, m);
		for(int i = 0; i < m; i++)
			MakeG(i, A[i], B[i]);
		return;
	}

	vector<int> label(3024);
	for(int z = 0, i = 0; i < 1000; i++) {
		while(z > 1 && !(z&(z-1))) z++;
		label[i] = z ? z : 1023;
		z++;
		if(i < 5) {
			//cout << i << " = " << label[i] << endl;
		}
	}

	vector<array<int, 2>> edges;
	vector<int> baka(n);
	for(int i = 0; i < m; i++) {
		baka[A[i]]++;
		baka[B[i]]++;
	}
	for(int i = 0; i < m; i++) edges.push_back({A[i], B[i]});
	for(int i = 0; i < n; i++) if(baka[i]) edges.push_back({n, i});
	for(int i = 0; i < n; i++) if(!baka[i]) {
		edges.push_back({i, n+2});
		edges.push_back({i, n+3});
		edges.push_back({i, n+4});
		edges.push_back({i, n+11});
	}
	edges.push_back({n+1, n});
	for(int bit = 0; bit < 10; bit++) {
		if(bit)
			edges.push_back({n+1+bit, n+2+bit});
		for(int i = 0; i < n; i++) if(baka[i] && (label[i]>>bit)&1) {
			edges.push_back({n+2+bit, i});
		}
	}
	//for(auto [u, v] : edges) cout << u << " " << v << endl;
	InitG(n+12, edges.size());
	for(int i = 0; i < edges.size(); i++)
		MakeG(i, edges[i][0], edges[i][1]);
}

#include "Boblib.h"
#include<bits/stdc++.h>
using namespace std;

void Bob( int V, int U, int C[], int D[] ){
	if(V < 3 || U == 0) {
		InitMap(V, U);
		for(int i = 0; i < U; i++)
			MakeMap(C[i], D[i]);
		return;
	}
	
	vector<int> label(3024);
	for(int z = 0, i = 0; i < 1000; i++) {
		while(z > 1 && !(z&(z-1))) z++;
		label[z ? z : 1023] = i;
		z++;
	}

	vector<vector<int>> g(V);
	vector<int> real(V, -1), crap(V, 0);
	for(int i = 0; i < U; i++) {
		g[C[i]].push_back(D[i]);
		g[D[i]].push_back(C[i]);
	}
	int sun = 0;
	while(g[sun].size()!=1) sun++;
	int psun = sun;
	sun = g[sun][0];
	for(auto i : g[sun]) if(g[i].size()>1)real[i] = 0;
	int start = -1, prev = -1;
	int isol = (V-12) - (g[sun].size()-1);
	if(isol == 0) {
		for(int i = 0; i < V; i++) if(!real[i]) {
			int popcnt = -1;
			for(int j : g[i]) if(real[j]  && j != sun) {
				if(popcnt == -1) popcnt = j;
				if(popcnt != j) popcnt = -2;
			}
			if(popcnt >= 0) {
				start = popcnt;
				break;
			}
		}
	} else {
		vector<int> fdeg(V);
		for(int i = 0; i < V; i++) if(real[i]) {
			for(int j : g[i]) fdeg[j]++;
		}
		for(int i = 0; i < V; i++) if(real[i] && i != sun && i != psun) {
			int has2 = 0, has4 = 0;
			for(int j : g[i]) if(real[j]) {
				has2 |= fdeg[j] == 2;
				has4 |= fdeg[j] == 4;
			}
			//cout << i << " " << has2 << " " << has4 << " " << g[i].size() << endl;
			if(has2 && has4 && fdeg[i] == 1+isol) {
				start = i;
				for(auto j : g[i]) if(real[j] && fdeg[j] == 4)
					crap[j] = 1;
				break;
			}
		}
	}


	//cout << start << "hm\n" << endl;
	vector<int> bits {start};
	while(bits.size() < 10) {
		for(auto i : g[start]) if(real[i] && i != prev && !crap[i]) {
			prev = start;
			start = i;
			break;
		}
		bits.push_back(start);
	}
	if(isol) reverse(bits.begin(), bits.end());

	for(int i = 0; i < 10; i++) {
		for(int j : g[bits[i]]) if(real[j] != -1)
			real[j] += 1<<i;
	}

	//for(auto i : real) cout << i << " "; cout << endl;
	for(int &i : real) if(i != -1) i = label[i];
	//for(auto i : real) cout << i << " "; cout << endl;

	int ed = 0;
	for(int i = 0; i < U; i++)
		ed += real[C[i]] >= 0 && real[D[i]] >= 0;
	InitMap(V-12, ed );
	for(int i = 0; i < U; i++) {
		if(real[C[i]] >= 0 && real[D[i]] >= 0)
			MakeMap(real[C[i]], real[D[i]]);
	}
}

Compilation message

Alice.cpp: In function 'void Alice(int, int, int*, int*)':
Alice.cpp:47:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |  for(int i = 0; i < edges.size(); i++)
      |                 ~~^~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4508 KB Output is correct
2 Correct 3 ms 4588 KB Output is correct
3 Correct 3 ms 4588 KB Output is correct
4 Correct 3 ms 4516 KB Output is correct
5 Correct 3 ms 4596 KB Output is correct
6 Correct 3 ms 4588 KB Output is correct
7 Correct 4 ms 4568 KB Output is correct
8 Correct 3 ms 4588 KB Output is correct
9 Correct 3 ms 4588 KB Output is correct
10 Correct 3 ms 4572 KB Output is correct
11 Correct 3 ms 4588 KB Output is correct
12 Correct 3 ms 4592 KB Output is correct
13 Correct 3 ms 4584 KB Output is correct
14 Correct 3 ms 4576 KB Output is correct
15 Correct 3 ms 4584 KB Output is correct
16 Correct 3 ms 4512 KB Output is correct
17 Correct 3 ms 4540 KB Output is correct
18 Correct 3 ms 4584 KB Output is correct
19 Correct 3 ms 4516 KB Output is correct
20 Correct 3 ms 4516 KB Output is correct
21 Correct 3 ms 4584 KB Output is correct
22 Correct 3 ms 4588 KB Output is correct
23 Correct 3 ms 4580 KB Output is correct
24 Correct 3 ms 4576 KB Output is correct
25 Correct 4 ms 4588 KB Output is correct
26 Correct 3 ms 4496 KB Output is correct
27 Correct 3 ms 4588 KB Output is correct
28 Correct 3 ms 4528 KB Output is correct
29 Correct 4 ms 4528 KB Output is correct
30 Correct 4 ms 4560 KB Output is correct
31 Correct 3 ms 4528 KB Output is correct
32 Correct 3 ms 4580 KB Output is correct
33 Correct 3 ms 4580 KB Output is correct
34 Correct 3 ms 4580 KB Output is correct
35 Correct 3 ms 4488 KB Output is correct
36 Correct 3 ms 4588 KB Output is correct
37 Correct 3 ms 4588 KB Output is correct
38 Correct 3 ms 4588 KB Output is correct
39 Correct 3 ms 4596 KB Output is correct
40 Correct 4 ms 4588 KB Output is correct
41 Correct 3 ms 4516 KB Output is correct
42 Correct 3 ms 4516 KB Output is correct
43 Correct 3 ms 4588 KB Output is correct
44 Correct 3 ms 4496 KB Output is correct
45 Correct 3 ms 4580 KB Output is correct
46 Correct 3 ms 4568 KB Output is correct
47 Correct 3 ms 4588 KB Output is correct
48 Correct 3 ms 4568 KB Output is correct
49 Correct 3 ms 4568 KB Output is correct
50 Correct 3 ms 4580 KB Output is correct
51 Correct 3 ms 4516 KB Output is correct
52 Correct 3 ms 4568 KB Output is correct
53 Correct 3 ms 4560 KB Output is correct
54 Correct 3 ms 4584 KB Output is correct
55 Correct 3 ms 4744 KB Output is correct
56 Correct 3 ms 4584 KB Output is correct
57 Correct 3 ms 4588 KB Output is correct
58 Correct 3 ms 4516 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4508 KB Output is correct
2 Correct 3 ms 4588 KB Output is correct
3 Correct 3 ms 4588 KB Output is correct
4 Correct 3 ms 4516 KB Output is correct
5 Correct 3 ms 4596 KB Output is correct
6 Correct 3 ms 4588 KB Output is correct
7 Correct 4 ms 4568 KB Output is correct
8 Correct 3 ms 4588 KB Output is correct
9 Correct 3 ms 4588 KB Output is correct
10 Correct 3 ms 4572 KB Output is correct
11 Correct 3 ms 4588 KB Output is correct
12 Correct 3 ms 4592 KB Output is correct
13 Correct 3 ms 4584 KB Output is correct
14 Correct 3 ms 4576 KB Output is correct
15 Correct 3 ms 4584 KB Output is correct
16 Correct 3 ms 4512 KB Output is correct
17 Correct 3 ms 4540 KB Output is correct
18 Correct 3 ms 4584 KB Output is correct
19 Correct 3 ms 4516 KB Output is correct
20 Correct 3 ms 4516 KB Output is correct
21 Correct 3 ms 4584 KB Output is correct
22 Correct 3 ms 4588 KB Output is correct
23 Correct 3 ms 4580 KB Output is correct
24 Correct 3 ms 4576 KB Output is correct
25 Correct 4 ms 4588 KB Output is correct
26 Correct 3 ms 4496 KB Output is correct
27 Correct 3 ms 4588 KB Output is correct
28 Correct 3 ms 4528 KB Output is correct
29 Correct 4 ms 4528 KB Output is correct
30 Correct 4 ms 4560 KB Output is correct
31 Correct 3 ms 4528 KB Output is correct
32 Correct 3 ms 4580 KB Output is correct
33 Correct 3 ms 4580 KB Output is correct
34 Correct 3 ms 4580 KB Output is correct
35 Correct 3 ms 4488 KB Output is correct
36 Correct 3 ms 4588 KB Output is correct
37 Correct 3 ms 4588 KB Output is correct
38 Correct 3 ms 4588 KB Output is correct
39 Correct 3 ms 4596 KB Output is correct
40 Correct 4 ms 4588 KB Output is correct
41 Correct 3 ms 4516 KB Output is correct
42 Correct 3 ms 4516 KB Output is correct
43 Correct 3 ms 4588 KB Output is correct
44 Correct 3 ms 4496 KB Output is correct
45 Correct 3 ms 4580 KB Output is correct
46 Correct 3 ms 4568 KB Output is correct
47 Correct 3 ms 4588 KB Output is correct
48 Correct 3 ms 4568 KB Output is correct
49 Correct 3 ms 4568 KB Output is correct
50 Correct 3 ms 4580 KB Output is correct
51 Correct 3 ms 4516 KB Output is correct
52 Correct 3 ms 4568 KB Output is correct
53 Correct 3 ms 4560 KB Output is correct
54 Correct 3 ms 4584 KB Output is correct
55 Correct 3 ms 4744 KB Output is correct
56 Correct 3 ms 4584 KB Output is correct
57 Correct 3 ms 4588 KB Output is correct
58 Correct 3 ms 4516 KB Output is correct
59 Correct 4 ms 4736 KB Output is correct
60 Correct 4 ms 4704 KB Output is correct
61 Correct 3 ms 4588 KB Output is correct
62 Correct 3 ms 4600 KB Output is correct
63 Correct 3 ms 4720 KB Output is correct
64 Correct 3 ms 4716 KB Output is correct
65 Correct 3 ms 4724 KB Output is correct
66 Correct 3 ms 4604 KB Output is correct
67 Correct 3 ms 4716 KB Output is correct
68 Correct 3 ms 4588 KB Output is correct
69 Correct 3 ms 4512 KB Output is correct
70 Correct 3 ms 4724 KB Output is correct
71 Correct 3 ms 4720 KB Output is correct
72 Correct 3 ms 4716 KB Output is correct
73 Correct 3 ms 4712 KB Output is correct
74 Correct 3 ms 4516 KB Output is correct
75 Correct 3 ms 4528 KB Output is correct
76 Correct 3 ms 4696 KB Output is correct
77 Correct 3 ms 4624 KB Output is correct
78 Correct 3 ms 4716 KB Output is correct
79 Correct 3 ms 4696 KB Output is correct
80 Correct 4 ms 4772 KB Output is correct
81 Correct 3 ms 4716 KB Output is correct
82 Correct 3 ms 4740 KB Output is correct
83 Correct 3 ms 4696 KB Output is correct
84 Correct 3 ms 4644 KB Output is correct
85 Correct 3 ms 4716 KB Output is correct
86 Correct 3 ms 4716 KB Output is correct
87 Correct 3 ms 4560 KB Output is correct
88 Correct 3 ms 4540 KB Output is correct
89 Correct 3 ms 4580 KB Output is correct
90 Correct 3 ms 4496 KB Output is correct
91 Correct 3 ms 4592 KB Output is correct
92 Correct 3 ms 4580 KB Output is correct
93 Correct 3 ms 4580 KB Output is correct
94 Correct 3 ms 4720 KB Output is correct
95 Correct 3 ms 4724 KB Output is correct
96 Correct 3 ms 4716 KB Output is correct
97 Correct 3 ms 4716 KB Output is correct
98 Correct 3 ms 4716 KB Output is correct
99 Correct 3 ms 4716 KB Output is correct
100 Correct 4 ms 4644 KB Output is correct
101 Correct 3 ms 4568 KB Output is correct
102 Correct 3 ms 4572 KB Output is correct
103 Correct 3 ms 4588 KB Output is correct
104 Correct 3 ms 4588 KB Output is correct
105 Correct 4 ms 4716 KB Output is correct
106 Correct 3 ms 4724 KB Output is correct
107 Correct 3 ms 4588 KB Output is correct
108 Correct 3 ms 4516 KB Output is correct
109 Correct 3 ms 4716 KB Output is correct
110 Correct 3 ms 4568 KB Output is correct
111 Correct 3 ms 4720 KB Output is correct
112 Correct 3 ms 4600 KB Output is correct
113 Correct 3 ms 4588 KB Output is correct
114 Correct 3 ms 4624 KB Output is correct
115 Correct 3 ms 4624 KB Output is correct
116 Correct 3 ms 4588 KB Output is correct
117 Correct 3 ms 4716 KB Output is correct
118 Correct 3 ms 4724 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 836 ms 24952 KB Output is correct : V - N = 12
2 Correct 523 ms 21432 KB Output is correct : V - N = 12
3 Correct 244 ms 11632 KB Output is correct : V - N = 12
4 Correct 11 ms 5136 KB Output is correct : V - N = 12
5 Correct 151 ms 8792 KB Output is correct : V - N = 12
6 Correct 498 ms 19380 KB Output is correct : V - N = 12
7 Correct 739 ms 24584 KB Output is correct : V - N = 12
8 Correct 619 ms 23004 KB Output is correct : V - N = 12
9 Correct 312 ms 13788 KB Output is correct : V - N = 12
10 Correct 48 ms 5972 KB Output is correct : V - N = 12
11 Correct 79 ms 6864 KB Output is correct : V - N = 12
12 Correct 329 ms 16052 KB Output is correct : V - N = 12
13 Correct 575 ms 23928 KB Output is correct : V - N = 12
14 Correct 627 ms 24260 KB Output is correct : V - N = 12
15 Correct 442 ms 18268 KB Output is correct : V - N = 12
16 Correct 99 ms 7664 KB Output is correct : V - N = 12
17 Correct 20 ms 5588 KB Output is correct : V - N = 12
18 Correct 222 ms 12648 KB Output is correct : V - N = 12
19 Correct 636 ms 22404 KB Output is correct : V - N = 12
20 Correct 846 ms 24964 KB Output is correct : V - N = 12
21 Correct 218 ms 11120 KB Output is correct : V - N = 12
22 Correct 158 ms 9088 KB Output is correct : V - N = 12
23 Correct 68 ms 6656 KB Output is correct : V - N = 12
24 Correct 6 ms 4752 KB Output is correct : V - N = 12
25 Correct 34 ms 5848 KB Output is correct : V - N = 12
26 Correct 113 ms 8528 KB Output is correct : V - N = 12
27 Correct 179 ms 10064 KB Output is correct : V - N = 12
28 Correct 211 ms 9588 KB Output is correct : V - N = 12
29 Correct 77 ms 7168 KB Output is correct : V - N = 12
30 Correct 9 ms 5140 KB Output is correct : V - N = 12
31 Correct 6 ms 4580 KB Output is correct : V - N = 0
32 Correct 6 ms 4576 KB Output is correct : V - N = 0
33 Correct 5 ms 4580 KB Output is correct : V - N = 0
34 Correct 5 ms 4580 KB Output is correct : V - N = 0
35 Correct 5 ms 4560 KB Output is correct : V - N = 0
36 Correct 652 ms 25072 KB Output is correct : V - N = 12
37 Correct 783 ms 24960 KB Output is correct : V - N = 12
38 Correct 823 ms 25028 KB Output is correct : V - N = 12
39 Correct 768 ms 25008 KB Output is correct : V - N = 12
40 Correct 667 ms 24844 KB Output is correct : V - N = 12
41 Correct 148 ms 8880 KB Output is correct : V - N = 12
42 Correct 98 ms 8012 KB Output is correct : V - N = 12
43 Correct 135 ms 8444 KB Output is correct : V - N = 12
44 Correct 10 ms 5100 KB Output is correct : V - N = 12
45 Correct 86 ms 6852 KB Output is correct : V - N = 12
46 Correct 280 ms 12176 KB Output is correct : V - N = 12
47 Correct 100 ms 8648 KB Output is correct : V - N = 12
48 Correct 353 ms 13904 KB Output is correct : V - N = 12
49 Correct 72 ms 6640 KB Output is correct : V - N = 12
50 Correct 24 ms 5548 KB Output is correct : V - N = 12
51 Correct 588 ms 21396 KB Output is correct : V - N = 12
52 Correct 12 ms 5140 KB Output is correct : V - N = 12
53 Correct 452 ms 19240 KB Output is correct : V - N = 12
54 Correct 536 ms 22976 KB Output is correct : V - N = 12
55 Correct 36 ms 5956 KB Output is correct : V - N = 12
56 Correct 352 ms 15480 KB Output is correct : V - N = 12
57 Correct 778 ms 23852 KB Output is correct : V - N = 12
58 Correct 77 ms 7660 KB Output is correct : V - N = 12
59 Correct 311 ms 12708 KB Output is correct : V - N = 12
60 Correct 584 ms 24412 KB Output is correct : V - N = 12
61 Correct 3 ms 4716 KB Output is correct : V - N = 12
62 Correct 3 ms 4716 KB Output is correct : V - N = 12
63 Correct 3 ms 4624 KB Output is correct : V - N = 12
64 Correct 3 ms 4508 KB Output is correct : V - N = 12
65 Correct 3 ms 4716 KB Output is correct : V - N = 12
66 Correct 3 ms 4708 KB Output is correct : V - N = 12
67 Correct 3 ms 4716 KB Output is correct : V - N = 12
68 Correct 4 ms 4728 KB Output is correct : V - N = 12
69 Correct 3 ms 4728 KB Output is correct : V - N = 12
70 Correct 3 ms 4588 KB Output is correct : V - N = 12
71 Correct 3 ms 4584 KB Output is correct : V - N = 12
72 Correct 3 ms 4712 KB Output is correct : V - N = 12
73 Correct 3 ms 4728 KB Output is correct : V - N = 12
74 Correct 3 ms 4712 KB Output is correct : V - N = 12
75 Correct 3 ms 4712 KB Output is correct : V - N = 12
76 Correct 3 ms 4516 KB Output is correct : V - N = 12
77 Correct 3 ms 4568 KB Output is correct : V - N = 12
78 Correct 3 ms 4716 KB Output is correct : V - N = 12
79 Correct 4 ms 4716 KB Output is correct : V - N = 12
80 Correct 3 ms 4712 KB Output is correct : V - N = 12
81 Correct 3 ms 4676 KB Output is correct : V - N = 12
82 Correct 3 ms 4584 KB Output is correct : V - N = 12
83 Correct 3 ms 4624 KB Output is correct : V - N = 12
84 Correct 3 ms 4496 KB Output is correct : V - N = 12
85 Correct 3 ms 4568 KB Output is correct : V - N = 12
86 Correct 3 ms 4716 KB Output is correct : V - N = 12
87 Correct 3 ms 4716 KB Output is correct : V - N = 12
88 Correct 3 ms 4716 KB Output is correct : V - N = 12
89 Correct 3 ms 4716 KB Output is correct : V - N = 12
90 Correct 3 ms 4564 KB Output is correct : V - N = 12
91 Correct 3 ms 4580 KB Output is correct : V - N = 0
92 Correct 4 ms 4516 KB Output is correct : V - N = 0
93 Correct 3 ms 4580 KB Output is correct : V - N = 0
94 Correct 3 ms 4580 KB Output is correct : V - N = 0
95 Correct 3 ms 4580 KB Output is correct : V - N = 0
96 Correct 3 ms 4716 KB Output is correct : V - N = 12
97 Correct 3 ms 4716 KB Output is correct : V - N = 12
98 Correct 3 ms 4696 KB Output is correct : V - N = 12
99 Correct 3 ms 4720 KB Output is correct : V - N = 12
100 Correct 5 ms 4716 KB Output is correct : V - N = 12
101 Correct 3 ms 4644 KB Output is correct : V - N = 12
102 Correct 3 ms 4836 KB Output is correct : V - N = 12
103 Correct 3 ms 4588 KB Output is correct : V - N = 12
104 Correct 3 ms 4580 KB Output is correct : V - N = 0
105 Correct 3 ms 4516 KB Output is correct : V - N = 12
106 Correct 3 ms 4716 KB Output is correct : V - N = 12
107 Correct 4 ms 4644 KB Output is correct : V - N = 12
108 Correct 4 ms 4624 KB Output is correct : V - N = 12
109 Correct 3 ms 4588 KB Output is correct : V - N = 12
110 Correct 3 ms 4592 KB Output is correct : V - N = 12
111 Correct 4 ms 4696 KB Output is correct : V - N = 12
112 Correct 3 ms 4572 KB Output is correct : V - N = 12
113 Correct 3 ms 4716 KB Output is correct : V - N = 12
114 Correct 4 ms 4716 KB Output is correct : V - N = 12
115 Correct 3 ms 4516 KB Output is correct : V - N = 12
116 Correct 3 ms 4644 KB Output is correct : V - N = 12
117 Correct 4 ms 4724 KB Output is correct : V - N = 12
118 Correct 3 ms 4496 KB Output is correct : V - N = 12
119 Correct 4 ms 4584 KB Output is correct : V - N = 12
120 Correct 3 ms 4716 KB Output is correct : V - N = 12
121 Correct 3 ms 4524 KB Output is correct : V - N = 12
122 Correct 3 ms 4588 KB Output is correct : V - N = 12
123 Correct 3 ms 4568 KB Output is correct : V - N = 12
124 Correct 3 ms 4580 KB Output is correct : V - N = 0
125 Correct 3 ms 4568 KB Output is correct : V - N = 12
126 Correct 3 ms 4596 KB Output is correct : V - N = 12
127 Correct 3 ms 4512 KB Output is correct : V - N = 12
128 Correct 3 ms 4516 KB Output is correct : V - N = 12
129 Correct 3 ms 4516 KB Output is correct : V - N = 12
130 Correct 3 ms 4564 KB Output is correct : V - N = 0
131 Correct 3 ms 4584 KB Output is correct : V - N = 12
132 Correct 3 ms 4528 KB Output is correct : V - N = 12
133 Correct 4 ms 4516 KB Output is correct : V - N = 12
134 Correct 3 ms 4496 KB Output is correct : V - N = 12
135 Correct 3 ms 4584 KB Output is correct : V - N = 12
136 Correct 3 ms 4588 KB Output is correct : V - N = 12
137 Correct 3 ms 4588 KB Output is correct : V - N = 12
138 Correct 3 ms 4496 KB Output is correct : V - N = 12
139 Correct 3 ms 4512 KB Output is correct : V - N = 12
140 Correct 3 ms 4568 KB Output is correct : V - N = 12
141 Correct 3 ms 4588 KB Output is correct : V - N = 12
142 Correct 3 ms 4496 KB Output is correct : V - N = 12
143 Correct 3 ms 4584 KB Output is correct : V - N = 12
144 Correct 3 ms 4560 KB Output is correct : V - N = 0
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 4588 KB Output is correct : V - N = 12
148 Correct 3 ms 4496 KB Output is correct : V - N = 12
149 Correct 3 ms 4528 KB Output is correct : V - N = 12
150 Correct 3 ms 4580 KB Output is correct : V - N = 0
151 Correct 3 ms 4496 KB Output is correct : V - N = 0
152 Correct 3 ms 4516 KB Output is correct : V - N = 0
153 Correct 3 ms 4580 KB Output is correct : V - N = 0
154 Correct 3 ms 4588 KB Output is correct : V - N = 0
155 Correct 3 ms 4588 KB Output is correct : V - N = 0
156 Correct 3 ms 4496 KB Output is correct : V - N = 12
157 Correct 3 ms 4516 KB Output is correct : V - N = 12
158 Correct 4 ms 4588 KB Output is correct : V - N = 12
159 Correct 3 ms 4596 KB Output is correct : V - N = 12
160 Correct 3 ms 4596 KB Output is correct : V - N = 12
161 Correct 3 ms 4516 KB Output is correct : V - N = 12
162 Correct 3 ms 4588 KB Output is correct : V - N = 12
163 Correct 3 ms 4540 KB Output is correct : V - N = 12
164 Correct 3 ms 4580 KB Output is correct : V - N = 0
165 Correct 3 ms 4496 KB Output is correct : V - N = 0
166 Correct 3 ms 4568 KB Output is correct : V - N = 12
167 Correct 4 ms 4516 KB Output is correct : V - N = 12
168 Correct 3 ms 4588 KB Output is correct : V - N = 12
169 Correct 3 ms 4588 KB Output is correct : V - N = 12
170 Correct 3 ms 4580 KB Output is correct : V - N = 0
171 Correct 3 ms 4588 KB Output is correct : V - N = 0
172 Correct 3 ms 4496 KB Output is correct : V - N = 0
173 Correct 3 ms 4580 KB Output is correct : V - N = 0
174 Correct 3 ms 4580 KB Output is correct : V - N = 12
175 Correct 3 ms 4540 KB Output is correct : V - N = 12
176 Correct 3 ms 4528 KB Output is correct : V - N = 12
177 Correct 3 ms 4628 KB Output is correct : V - N = 12
178 Correct 3 ms 4584 KB Output is correct : V - N = 12