Submission #925417

# Submission time Handle Problem Language Result Execution time Memory
925417 2024-02-11T15:06:09 Z Itamar Fountain Parks (IOI21_parks) C++17
70 / 100
1256 ms 120176 KB
using namespace std;
#include <vector>
#include "parks.h"
#include <map>
#define pi pair<int,int>
#define vi vector<int>
const int siz = 2e5 + 2;
map<pi, int> m;
int my[siz];
vi col[siz];
#include <set>
bool con(int a, int b) {
	if (my[a] == my[b])return 0;
	a = my[a], b = my[b];
	if (col[a].size() > col[b].size())swap(a, b);
	for (int x : col[a]) {
		my[x] = b;
		col[b].push_back(x);
	}
	return 1;
}

int construct_roads(std::vector<int> x, std::vector<int> y) {
	int n = x.size();
	for (int i = 0; i < n; i++) {
		m[{x[i], y[i]}] = i + 1;
	}
	vector<pi> ed1, ed2;
	for (int i = 0; i < n; i++) {
		if (m[{x[i] + 2, y[i]}])ed1.push_back({ i+1,m[{x[i] + 2, y[i]}] });
		if (m[{x[i], y[i] + 2}])ed2.push_back({ i+1,m[{x[i],y[i] + 2}] });
	}
	vector<pi> ed; for (pi p : ed2)ed.push_back(p); for (pi p : ed1)ed.push_back(p);
	vector<pi> ans;
	for (int i = 0; i <= n; i++) {
		my[i] = i; col[i].push_back(i);
	}
	for (pi e : ed) {
		if (con(e.first, e.second))ans.push_back(e);
	}
	if (ans.size()+1 < n )return 0;
	vi ans1(n - 1), ans2(n - 1), ans3(n - 1), ans4(n - 1);

	for (int i = 0; i < n - 1; i++) {
		ans1[i] = ans[i].first - 1; ans2[i] = ans[i].second - 1;
	}
	map<pi, vi> fr;
	vector<vector<pi>> fr2(n - 1);
	for (int i = 0; i < n - 1; i++) {
		if (x[ans[i].first - 1] == x[ans[i].second - 1]) {
			int mid = (y[ans[i].first - 1] + y[ans[i].second - 1]) / 2;
			fr[{x[ans[i].first - 1]-1, mid}].push_back(i);
			fr[{x[ans[i].first - 1]+1, mid}].push_back(i);
			fr2[i].push_back({ x[ans[i].first - 1]-1, mid });
			fr2[i].push_back({ x[ans[i].first - 1]+1, mid });
		}
		else {
			int mid = (x[ans[i].first - 1] + x[ans[i].second - 1]) / 2;
			fr[{mid,y[ans[i].first - 1]+1}].push_back(i);
			fr[{mid,y[ans[i].first - 1]-1}].push_back(i);
			fr2[i].push_back( {mid,y[ans[i].first - 1]-1 });
			fr2[i].push_back( {mid,y[ans[i].first - 1]+1} );
		}
	}
	vector<pi> deg1;
	for (pair<pi, vi> p : fr)if (p.second.size() == 1)deg1.push_back(p.first);

	while(!deg1.empty()){

		pi poi = deg1.back();
		deg1.pop_back();
			while (fr[poi].size() == 1) {
				int i = fr[poi][0];
				fr[poi].pop_back();
				if (fr2[i].back() != poi)swap(fr2[i][0], fr2[i][1]);
				fr2[i].pop_back();
				ans3[i] = poi.first, ans4[i] = poi.second;
				if (fr2[i].size() == 1) {
					poi = fr2[i][0];
					if (fr[poi].size()) {
						if (fr[poi].back() != i) {
							swap(fr[poi][0], fr[poi][1]);
							if (fr[poi].back() != i)swap(fr[poi][0], fr[poi][2]);
							if (fr[poi].back() != i)swap(fr[poi][1], fr[poi][2]);
						}
						fr[poi].pop_back();
						if (fr[poi].size() == 1)deg1.push_back(poi);
					}
				}
			}
	}
	for (pair<pi, vi> p : fr) {
		pi poi = p.first;
		if (p.second.size() == 2)fr[poi].pop_back();
		while (fr[poi].size() == 1) {
			int i = fr[poi][0];
			fr[poi].pop_back();
			if (fr2[i].back() != poi)swap(fr2[i][0], fr2[i][1]);
			fr2[i].pop_back();
			ans3[i] = poi.first, ans4[i] = poi.second;
			if (fr2[i].size() == 1) {
				poi = fr2[i][0];
				if (fr[poi].size()) {
					if (fr[poi].back() != i)swap(fr[poi][0], fr[poi][1]);
					fr[poi].pop_back();
				}
			}
		}
	}
	build(ans1, ans2, ans3, ans4);
	return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:42:19: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   42 |  if (ans.size()+1 < n )return 0;
      |      ~~~~~~~~~~~~~^~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
17 Correct 1 ms 5720 KB Output is correct
18 Correct 2 ms 5464 KB Output is correct
19 Correct 1 ms 5468 KB Output is correct
20 Correct 2 ms 5468 KB Output is correct
21 Correct 1 ms 5468 KB Output is correct
22 Correct 2 ms 5468 KB Output is correct
23 Correct 1098 ms 102564 KB Output is correct
24 Correct 2 ms 5468 KB Output is correct
25 Correct 4 ms 5980 KB Output is correct
26 Correct 3 ms 5980 KB Output is correct
27 Correct 5 ms 6312 KB Output is correct
28 Correct 325 ms 43936 KB Output is correct
29 Correct 496 ms 63544 KB Output is correct
30 Correct 773 ms 82852 KB Output is correct
31 Correct 1256 ms 104332 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
33 Correct 2 ms 5516 KB Output is correct
34 Correct 1 ms 5468 KB Output is correct
35 Correct 2 ms 5468 KB Output is correct
36 Correct 2 ms 5468 KB Output is correct
37 Correct 1 ms 5468 KB Output is correct
38 Correct 1 ms 5468 KB Output is correct
39 Correct 1 ms 5464 KB Output is correct
40 Correct 1 ms 5468 KB Output is correct
41 Correct 2 ms 5468 KB Output is correct
42 Correct 1 ms 5468 KB Output is correct
43 Correct 3 ms 5724 KB Output is correct
44 Correct 4 ms 6176 KB Output is correct
45 Correct 384 ms 53360 KB Output is correct
46 Correct 720 ms 75700 KB Output is correct
47 Correct 654 ms 75832 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
17 Correct 1 ms 5720 KB Output is correct
18 Correct 2 ms 5464 KB Output is correct
19 Correct 1 ms 5468 KB Output is correct
20 Correct 2 ms 5468 KB Output is correct
21 Correct 1 ms 5468 KB Output is correct
22 Correct 2 ms 5468 KB Output is correct
23 Correct 1098 ms 102564 KB Output is correct
24 Correct 2 ms 5468 KB Output is correct
25 Correct 4 ms 5980 KB Output is correct
26 Correct 3 ms 5980 KB Output is correct
27 Correct 5 ms 6312 KB Output is correct
28 Correct 325 ms 43936 KB Output is correct
29 Correct 496 ms 63544 KB Output is correct
30 Correct 773 ms 82852 KB Output is correct
31 Correct 1256 ms 104332 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
33 Correct 2 ms 5516 KB Output is correct
34 Correct 1 ms 5468 KB Output is correct
35 Correct 2 ms 5468 KB Output is correct
36 Correct 2 ms 5468 KB Output is correct
37 Correct 1 ms 5468 KB Output is correct
38 Correct 1 ms 5468 KB Output is correct
39 Correct 1 ms 5464 KB Output is correct
40 Correct 1 ms 5468 KB Output is correct
41 Correct 2 ms 5468 KB Output is correct
42 Correct 1 ms 5468 KB Output is correct
43 Correct 3 ms 5724 KB Output is correct
44 Correct 4 ms 6176 KB Output is correct
45 Correct 384 ms 53360 KB Output is correct
46 Correct 720 ms 75700 KB Output is correct
47 Correct 654 ms 75832 KB Output is correct
48 Correct 2 ms 5464 KB Output is correct
49 Correct 2 ms 5468 KB Output is correct
50 Correct 1 ms 5468 KB Output is correct
51 Correct 2 ms 5468 KB Output is correct
52 Correct 2 ms 5468 KB Output is correct
53 Correct 2 ms 5468 KB Output is correct
54 Correct 1 ms 5468 KB Output is correct
55 Correct 1025 ms 98960 KB Output is correct
56 Correct 1 ms 5468 KB Output is correct
57 Correct 5 ms 6212 KB Output is correct
58 Correct 15 ms 8180 KB Output is correct
59 Correct 10 ms 7384 KB Output is correct
60 Correct 380 ms 50988 KB Output is correct
61 Correct 559 ms 67252 KB Output is correct
62 Correct 755 ms 82608 KB Output is correct
63 Correct 993 ms 98936 KB Output is correct
64 Correct 2 ms 5464 KB Output is correct
65 Correct 1 ms 5724 KB Output is correct
66 Correct 1 ms 5464 KB Output is correct
67 Correct 1057 ms 119744 KB Output is correct
68 Correct 1097 ms 120176 KB Output is correct
69 Correct 1068 ms 119044 KB Output is correct
70 Correct 4 ms 6232 KB Output is correct
71 Correct 8 ms 7000 KB Output is correct
72 Correct 392 ms 52132 KB Output is correct
73 Correct 667 ms 76472 KB Output is correct
74 Correct 996 ms 99844 KB Output is correct
75 Correct 991 ms 104120 KB Output is correct
76 Correct 1079 ms 119988 KB Output is correct
77 Correct 5 ms 6504 KB Output is correct
78 Correct 10 ms 7368 KB Output is correct
79 Correct 378 ms 53052 KB Output is correct
80 Correct 717 ms 77816 KB Output is correct
81 Correct 1002 ms 101684 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
17 Correct 1 ms 5464 KB Output is correct
18 Correct 1 ms 5468 KB Output is correct
19 Correct 1 ms 5468 KB Output is correct
20 Correct 784 ms 88376 KB Output is correct
21 Correct 892 ms 94132 KB Output is correct
22 Correct 813 ms 87732 KB Output is correct
23 Correct 736 ms 101176 KB Output is correct
24 Correct 372 ms 52820 KB Output is correct
25 Correct 349 ms 48964 KB Output is correct
26 Correct 349 ms 48708 KB Output is correct
27 Correct 1042 ms 118128 KB Output is correct
28 Correct 1037 ms 117488 KB Output is correct
29 Correct 977 ms 116508 KB Output is correct
30 Correct 905 ms 115496 KB Output is correct
31 Correct 1 ms 5468 KB Output is correct
32 Correct 39 ms 11864 KB Output is correct
33 Correct 113 ms 28752 KB Output is correct
34 Correct 802 ms 94696 KB Output is correct
35 Correct 10 ms 7516 KB Output is correct
36 Correct 56 ms 15200 KB Output is correct
37 Correct 124 ms 24820 KB Output is correct
38 Correct 260 ms 39856 KB Output is correct
39 Correct 399 ms 52544 KB Output is correct
40 Correct 561 ms 65972 KB Output is correct
41 Correct 759 ms 78892 KB Output is correct
42 Correct 908 ms 91620 KB Output is correct
43 Correct 2 ms 5468 KB Output is correct
44 Correct 1 ms 5468 KB Output is correct
45 Correct 2 ms 5468 KB Output is correct
46 Correct 1 ms 5468 KB Output is correct
47 Correct 2 ms 5468 KB Output is correct
48 Correct 2 ms 5468 KB Output is correct
49 Correct 1 ms 5468 KB Output is correct
50 Correct 1 ms 5468 KB Output is correct
51 Correct 1 ms 5720 KB Output is correct
52 Correct 1 ms 5464 KB Output is correct
53 Correct 1 ms 5468 KB Output is correct
54 Correct 3 ms 5976 KB Output is correct
55 Correct 4 ms 5980 KB Output is correct
56 Correct 382 ms 52400 KB Output is correct
57 Correct 644 ms 74556 KB Output is correct
58 Correct 649 ms 74540 KB Output is correct
59 Correct 1 ms 5468 KB Output is correct
60 Correct 1 ms 5468 KB Output is correct
61 Correct 2 ms 5468 KB Output is correct
62 Correct 1062 ms 118772 KB Output is correct
63 Correct 1089 ms 118096 KB Output is correct
64 Correct 1068 ms 118204 KB Output is correct
65 Correct 4 ms 6236 KB Output is correct
66 Correct 8 ms 7004 KB Output is correct
67 Correct 386 ms 51520 KB Output is correct
68 Correct 655 ms 75184 KB Output is correct
69 Correct 987 ms 98120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
17 Correct 905 ms 118336 KB Output is correct
18 Correct 892 ms 117680 KB Output is correct
19 Correct 850 ms 91312 KB Output is correct
20 Correct 876 ms 91208 KB Output is correct
21 Correct 792 ms 92496 KB Output is correct
22 Correct 1 ms 5468 KB Output is correct
23 Correct 90 ms 19284 KB Output is correct
24 Correct 20 ms 9064 KB Output is correct
25 Correct 84 ms 18880 KB Output is correct
26 Correct 154 ms 27920 KB Output is correct
27 Correct 360 ms 48380 KB Output is correct
28 Correct 481 ms 59056 KB Output is correct
29 Correct 619 ms 70328 KB Output is correct
30 Correct 762 ms 80952 KB Output is correct
31 Correct 924 ms 91704 KB Output is correct
32 Correct 963 ms 102900 KB Output is correct
33 Correct 1065 ms 118768 KB Output is correct
34 Correct 5 ms 6492 KB Output is correct
35 Correct 9 ms 7260 KB Output is correct
36 Correct 437 ms 52228 KB Output is correct
37 Correct 674 ms 76576 KB Output is correct
38 Correct 1012 ms 100056 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 5464 KB Output is correct
2 Correct 2 ms 5464 KB Output is correct
3 Correct 1 ms 5468 KB Output is correct
4 Correct 1 ms 5468 KB Output is correct
5 Correct 1 ms 5364 KB Output is correct
6 Correct 1 ms 5464 KB Output is correct
7 Correct 1 ms 5468 KB Output is correct
8 Correct 2 ms 5468 KB Output is correct
9 Correct 435 ms 61272 KB Output is correct
10 Correct 26 ms 10712 KB Output is correct
11 Correct 165 ms 34256 KB Output is correct
12 Correct 38 ms 13528 KB Output is correct
13 Correct 31 ms 14680 KB Output is correct
14 Correct 2 ms 5724 KB Output is correct
15 Correct 3 ms 5724 KB Output is correct
16 Correct 460 ms 61372 KB Output is correct
17 Correct 1 ms 5720 KB Output is correct
18 Correct 2 ms 5464 KB Output is correct
19 Correct 1 ms 5468 KB Output is correct
20 Correct 2 ms 5468 KB Output is correct
21 Correct 1 ms 5468 KB Output is correct
22 Correct 2 ms 5468 KB Output is correct
23 Correct 1098 ms 102564 KB Output is correct
24 Correct 2 ms 5468 KB Output is correct
25 Correct 4 ms 5980 KB Output is correct
26 Correct 3 ms 5980 KB Output is correct
27 Correct 5 ms 6312 KB Output is correct
28 Correct 325 ms 43936 KB Output is correct
29 Correct 496 ms 63544 KB Output is correct
30 Correct 773 ms 82852 KB Output is correct
31 Correct 1256 ms 104332 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
33 Correct 2 ms 5516 KB Output is correct
34 Correct 1 ms 5468 KB Output is correct
35 Correct 2 ms 5468 KB Output is correct
36 Correct 2 ms 5468 KB Output is correct
37 Correct 1 ms 5468 KB Output is correct
38 Correct 1 ms 5468 KB Output is correct
39 Correct 1 ms 5464 KB Output is correct
40 Correct 1 ms 5468 KB Output is correct
41 Correct 2 ms 5468 KB Output is correct
42 Correct 1 ms 5468 KB Output is correct
43 Correct 3 ms 5724 KB Output is correct
44 Correct 4 ms 6176 KB Output is correct
45 Correct 384 ms 53360 KB Output is correct
46 Correct 720 ms 75700 KB Output is correct
47 Correct 654 ms 75832 KB Output is correct
48 Correct 2 ms 5464 KB Output is correct
49 Correct 2 ms 5468 KB Output is correct
50 Correct 1 ms 5468 KB Output is correct
51 Correct 2 ms 5468 KB Output is correct
52 Correct 2 ms 5468 KB Output is correct
53 Correct 2 ms 5468 KB Output is correct
54 Correct 1 ms 5468 KB Output is correct
55 Correct 1025 ms 98960 KB Output is correct
56 Correct 1 ms 5468 KB Output is correct
57 Correct 5 ms 6212 KB Output is correct
58 Correct 15 ms 8180 KB Output is correct
59 Correct 10 ms 7384 KB Output is correct
60 Correct 380 ms 50988 KB Output is correct
61 Correct 559 ms 67252 KB Output is correct
62 Correct 755 ms 82608 KB Output is correct
63 Correct 993 ms 98936 KB Output is correct
64 Correct 2 ms 5464 KB Output is correct
65 Correct 1 ms 5724 KB Output is correct
66 Correct 1 ms 5464 KB Output is correct
67 Correct 1057 ms 119744 KB Output is correct
68 Correct 1097 ms 120176 KB Output is correct
69 Correct 1068 ms 119044 KB Output is correct
70 Correct 4 ms 6232 KB Output is correct
71 Correct 8 ms 7000 KB Output is correct
72 Correct 392 ms 52132 KB Output is correct
73 Correct 667 ms 76472 KB Output is correct
74 Correct 996 ms 99844 KB Output is correct
75 Correct 991 ms 104120 KB Output is correct
76 Correct 1079 ms 119988 KB Output is correct
77 Correct 5 ms 6504 KB Output is correct
78 Correct 10 ms 7368 KB Output is correct
79 Correct 378 ms 53052 KB Output is correct
80 Correct 717 ms 77816 KB Output is correct
81 Correct 1002 ms 101684 KB Output is correct
82 Correct 1 ms 5464 KB Output is correct
83 Correct 1 ms 5468 KB Output is correct
84 Correct 1 ms 5468 KB Output is correct
85 Correct 784 ms 88376 KB Output is correct
86 Correct 892 ms 94132 KB Output is correct
87 Correct 813 ms 87732 KB Output is correct
88 Correct 736 ms 101176 KB Output is correct
89 Correct 372 ms 52820 KB Output is correct
90 Correct 349 ms 48964 KB Output is correct
91 Correct 349 ms 48708 KB Output is correct
92 Correct 1042 ms 118128 KB Output is correct
93 Correct 1037 ms 117488 KB Output is correct
94 Correct 977 ms 116508 KB Output is correct
95 Correct 905 ms 115496 KB Output is correct
96 Correct 1 ms 5468 KB Output is correct
97 Correct 39 ms 11864 KB Output is correct
98 Correct 113 ms 28752 KB Output is correct
99 Correct 802 ms 94696 KB Output is correct
100 Correct 10 ms 7516 KB Output is correct
101 Correct 56 ms 15200 KB Output is correct
102 Correct 124 ms 24820 KB Output is correct
103 Correct 260 ms 39856 KB Output is correct
104 Correct 399 ms 52544 KB Output is correct
105 Correct 561 ms 65972 KB Output is correct
106 Correct 759 ms 78892 KB Output is correct
107 Correct 908 ms 91620 KB Output is correct
108 Correct 2 ms 5468 KB Output is correct
109 Correct 1 ms 5468 KB Output is correct
110 Correct 2 ms 5468 KB Output is correct
111 Correct 1 ms 5468 KB Output is correct
112 Correct 2 ms 5468 KB Output is correct
113 Correct 2 ms 5468 KB Output is correct
114 Correct 1 ms 5468 KB Output is correct
115 Correct 1 ms 5468 KB Output is correct
116 Correct 1 ms 5720 KB Output is correct
117 Correct 1 ms 5464 KB Output is correct
118 Correct 1 ms 5468 KB Output is correct
119 Correct 3 ms 5976 KB Output is correct
120 Correct 4 ms 5980 KB Output is correct
121 Correct 382 ms 52400 KB Output is correct
122 Correct 644 ms 74556 KB Output is correct
123 Correct 649 ms 74540 KB Output is correct
124 Correct 1 ms 5468 KB Output is correct
125 Correct 1 ms 5468 KB Output is correct
126 Correct 2 ms 5468 KB Output is correct
127 Correct 1062 ms 118772 KB Output is correct
128 Correct 1089 ms 118096 KB Output is correct
129 Correct 1068 ms 118204 KB Output is correct
130 Correct 4 ms 6236 KB Output is correct
131 Correct 8 ms 7004 KB Output is correct
132 Correct 386 ms 51520 KB Output is correct
133 Correct 655 ms 75184 KB Output is correct
134 Correct 987 ms 98120 KB Output is correct
135 Correct 905 ms 118336 KB Output is correct
136 Correct 892 ms 117680 KB Output is correct
137 Correct 850 ms 91312 KB Output is correct
138 Correct 876 ms 91208 KB Output is correct
139 Correct 792 ms 92496 KB Output is correct
140 Correct 1 ms 5468 KB Output is correct
141 Correct 90 ms 19284 KB Output is correct
142 Correct 20 ms 9064 KB Output is correct
143 Correct 84 ms 18880 KB Output is correct
144 Correct 154 ms 27920 KB Output is correct
145 Correct 360 ms 48380 KB Output is correct
146 Correct 481 ms 59056 KB Output is correct
147 Correct 619 ms 70328 KB Output is correct
148 Correct 762 ms 80952 KB Output is correct
149 Correct 924 ms 91704 KB Output is correct
150 Correct 963 ms 102900 KB Output is correct
151 Correct 1065 ms 118768 KB Output is correct
152 Correct 5 ms 6492 KB Output is correct
153 Correct 9 ms 7260 KB Output is correct
154 Correct 437 ms 52228 KB Output is correct
155 Correct 674 ms 76576 KB Output is correct
156 Correct 1012 ms 100056 KB Output is correct
157 Correct 1 ms 5468 KB Output is correct
158 Correct 2 ms 5468 KB Output is correct
159 Correct 2 ms 5724 KB Output is correct
160 Correct 1 ms 5468 KB Output is correct
161 Incorrect 1000 ms 85376 KB a[23042] = 0 is not an odd integer
162 Halted 0 ms 0 KB -