Submission #776316

# Submission time Handle Problem Language Result Execution time Memory
776316 2023-07-07T16:16:30 Z rainboy Good Game (CCO22_day2problem3) C
25 / 25
173 ms 11528 KB
#include <stdio.h>

#define N	1000000

int check(char *cc, int n) {
	int i, j, d;

	if (n == 0)
		return 1;
	d = 2;
	for (i = 0; i + 1 < n; i++)
		if (cc[i] != cc[i + 1])
			d++;
	if (d == n + 1)
		return 0;
	for (i = 0; i < n; i = j) {
		j = i + 1;
		while (j < n && cc[j] != cc[j - 1])
			j++;
		if (j - i > (d + 1) / 2)
			return 0;
	}
	if (d % 2 == 0)
		return 1;
	i = 0;
	while (i + 1 < n && cc[i] != cc[i + 1])
		i++;
	if (i == n - 1)
		return 0;
	j = n - 1;
	while (j > 0 && cc[j] != cc[j - 1])
		j--;
	if (j == 0)
		return 0;
	return (i + 1) + (n - j) <= d / 2 + 1;
}

int ii[N], ll[N], m;

void remove_(int i, int l) {
	while (l > 0)
		if (l % 2 != 0)
			ii[m] = i, ll[m] = 3, m++, l -= 3;
		else
			ii[m] = i, ll[m] = 2, m++, l -= 2;
}

int solve(char *cc, int n, int t, int print) {
	static char cc_[N + 1];
	int n_, nl, nr, h, i, i_, j, j_, d, d_;

	d = 2;
	for (i = 0; i + 1 < n; i++)
		if (cc[i] != cc[i + 1])
			d++;
	n_ = 0, d_ = 0, m = 0;
	for (i = 0; i <= n; i++) {
		if (i == n || n_ > 0 && cc[i] != cc_[n_ - 1])
			if (n_ >= 2 && cc_[n_ - 2] == cc_[n_ - 1] && (d % 2 != 0 || d_ > 1 && i < n) && t > 0) {
				i_ = n_ - 3;
				while (i_ >= 0 && cc_[i_] == cc_[n_ - 1])
					i_--;
				i_++;
				if (print)
					remove_(i_, n_ - i_);
				n_ = i_;
				t--;
				if (--d_ == 0 || i == n)
					d--;
			}
		if (i < n) {
			if (n_ == 0 || cc_[n_ - 1] != cc[i])
				d_++;
			cc_[n_++] = cc[i];
		}
	}
	if (print) {
		d = 2;
		for (i = 0; i + 1 < n_; i++)
			if (cc_[i] != cc_[i + 1])
				d++;
		i_ = j_ = -1;
		for (i = 0; i < n_; i = j) {
			j = i + 1;
			while (j < n_ && cc_[j] != cc_[j - 1])
				j++;
			if (j - i == (d + 1) / 2) {
				i_ = i, j_ = j - 1;
				break;
			}
		}
		nr = 0;
		for (i = j_ + 1; i < n_; i = j) {
			j = i + 1;
			while (j < n_ && cc_[j] == cc_[i])
				j++;
			if (j < n_)
				remove_(j_--, j - i + 1);
			else
				nr = j - i;
		}
		nl = 0;
		for (j = i_ - 1; j >= 0; j = i) {
			i = j - 1;
			while (i >= 0 && cc_[i] == cc_[j])
				i--;
			if (i >= 0)
				remove_(i + 1, j - i + 1);
			else
				nl = j - i;
		}
		if (d % 2 == 0)
			remove_(0, nl + nr + 1);
		else
			remove_(0, nl + 1), remove_(0, nr + 1);
		printf("%d\n", m);
		for (h = 0; h < m; h++)
			printf("%d %d\n", ii[h] + 1, ll[h]);
	}
	return check(cc_, n_);
}

int main() {
	static char cc[N + 1];
	int n, t, lower, upper;

	scanf("%d%s", &n, cc);
	if (!check(cc, n)) {
		printf("-1\n");
		return 0;
	}
	lower = 0, upper = n + 1;
	while (upper - lower > 1) {
		t = (lower + upper) / 2;
		if (solve(cc, n, t, 0))
			lower = t;
		else
			upper = t;
	}
	solve(cc, n, lower, 1);
	return 0;
}

Compilation message

Main.c: In function 'solve':
Main.c:58:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   58 |   if (i == n || n_ > 0 && cc[i] != cc_[n_ - 1])
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Main.c:59:71: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   59 |    if (n_ >= 2 && cc_[n_ - 2] == cc_[n_ - 1] && (d % 2 != 0 || d_ > 1 && i < n) && t > 0) {
      |                                                                ~~~~~~~^~~~~~~~
Main.c: In function 'main':
Main.c:127:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  127 |  scanf("%d%s", &n, cc);
      |  ^~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 260 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 296 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 0 ms 288 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 260 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 296 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 0 ms 288 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 284 KB Output is correct
56 Correct 0 ms 292 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 0 ms 212 KB Output is correct
59 Correct 1 ms 288 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 0 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 292 KB Output is correct
67 Correct 0 ms 212 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 288 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 212 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 288 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 0 ms 212 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 0 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 0 ms 212 KB Output is correct
95 Correct 0 ms 288 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 0 ms 212 KB Output is correct
98 Correct 1 ms 292 KB Output is correct
99 Correct 0 ms 212 KB Output is correct
100 Correct 0 ms 212 KB Output is correct
101 Correct 0 ms 212 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 260 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 296 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 0 ms 288 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 284 KB Output is correct
56 Correct 0 ms 292 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 0 ms 212 KB Output is correct
59 Correct 1 ms 288 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 0 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 292 KB Output is correct
67 Correct 0 ms 212 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 288 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 212 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 288 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 0 ms 212 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 0 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 0 ms 212 KB Output is correct
95 Correct 0 ms 288 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 0 ms 212 KB Output is correct
98 Correct 1 ms 292 KB Output is correct
99 Correct 0 ms 212 KB Output is correct
100 Correct 0 ms 212 KB Output is correct
101 Correct 0 ms 212 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
103 Correct 1 ms 352 KB Output is correct
104 Correct 1 ms 340 KB Output is correct
105 Correct 1 ms 340 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 1 ms 308 KB Output is correct
111 Correct 1 ms 292 KB Output is correct
112 Correct 1 ms 340 KB Output is correct
113 Correct 1 ms 340 KB Output is correct
114 Correct 0 ms 296 KB Output is correct
115 Correct 1 ms 340 KB Output is correct
116 Correct 1 ms 340 KB Output is correct
117 Correct 1 ms 340 KB Output is correct
118 Correct 1 ms 340 KB Output is correct
119 Correct 1 ms 340 KB Output is correct
120 Correct 1 ms 340 KB Output is correct
121 Correct 1 ms 340 KB Output is correct
122 Correct 1 ms 340 KB Output is correct
123 Correct 2 ms 340 KB Output is correct
124 Correct 2 ms 340 KB Output is correct
125 Correct 1 ms 340 KB Output is correct
126 Correct 2 ms 340 KB Output is correct
127 Correct 2 ms 340 KB Output is correct
128 Correct 1 ms 340 KB Output is correct
129 Correct 1 ms 292 KB Output is correct
130 Correct 1 ms 340 KB Output is correct
131 Correct 1 ms 340 KB Output is correct
132 Correct 1 ms 288 KB Output is correct
133 Correct 1 ms 292 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 1 ms 340 KB Output is correct
136 Correct 1 ms 344 KB Output is correct
137 Correct 1 ms 344 KB Output is correct
138 Correct 1 ms 340 KB Output is correct
139 Correct 1 ms 340 KB Output is correct
140 Correct 1 ms 300 KB Output is correct
141 Correct 1 ms 340 KB Output is correct
142 Correct 1 ms 340 KB Output is correct
143 Correct 1 ms 340 KB Output is correct
144 Correct 1 ms 340 KB Output is correct
145 Correct 2 ms 340 KB Output is correct
146 Correct 1 ms 292 KB Output is correct
147 Correct 0 ms 212 KB Output is correct
148 Correct 0 ms 292 KB Output is correct
149 Correct 0 ms 212 KB Output is correct
150 Correct 0 ms 212 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 0 ms 212 KB Output is correct
153 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 260 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 296 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 0 ms 288 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 284 KB Output is correct
56 Correct 0 ms 292 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 0 ms 212 KB Output is correct
59 Correct 1 ms 288 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 0 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 292 KB Output is correct
67 Correct 0 ms 212 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 288 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 212 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 288 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 0 ms 212 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 0 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 0 ms 212 KB Output is correct
95 Correct 0 ms 288 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 0 ms 212 KB Output is correct
98 Correct 1 ms 292 KB Output is correct
99 Correct 0 ms 212 KB Output is correct
100 Correct 0 ms 212 KB Output is correct
101 Correct 0 ms 212 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
103 Correct 1 ms 352 KB Output is correct
104 Correct 1 ms 340 KB Output is correct
105 Correct 1 ms 340 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 1 ms 308 KB Output is correct
111 Correct 1 ms 292 KB Output is correct
112 Correct 1 ms 340 KB Output is correct
113 Correct 1 ms 340 KB Output is correct
114 Correct 0 ms 296 KB Output is correct
115 Correct 1 ms 340 KB Output is correct
116 Correct 1 ms 340 KB Output is correct
117 Correct 1 ms 340 KB Output is correct
118 Correct 1 ms 340 KB Output is correct
119 Correct 1 ms 340 KB Output is correct
120 Correct 1 ms 340 KB Output is correct
121 Correct 1 ms 340 KB Output is correct
122 Correct 1 ms 340 KB Output is correct
123 Correct 2 ms 340 KB Output is correct
124 Correct 2 ms 340 KB Output is correct
125 Correct 1 ms 340 KB Output is correct
126 Correct 2 ms 340 KB Output is correct
127 Correct 2 ms 340 KB Output is correct
128 Correct 1 ms 340 KB Output is correct
129 Correct 1 ms 292 KB Output is correct
130 Correct 1 ms 340 KB Output is correct
131 Correct 1 ms 340 KB Output is correct
132 Correct 1 ms 288 KB Output is correct
133 Correct 1 ms 292 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 1 ms 340 KB Output is correct
136 Correct 1 ms 344 KB Output is correct
137 Correct 1 ms 344 KB Output is correct
138 Correct 1 ms 340 KB Output is correct
139 Correct 1 ms 340 KB Output is correct
140 Correct 1 ms 300 KB Output is correct
141 Correct 1 ms 340 KB Output is correct
142 Correct 1 ms 340 KB Output is correct
143 Correct 1 ms 340 KB Output is correct
144 Correct 1 ms 340 KB Output is correct
145 Correct 2 ms 340 KB Output is correct
146 Correct 1 ms 292 KB Output is correct
147 Correct 0 ms 212 KB Output is correct
148 Correct 0 ms 292 KB Output is correct
149 Correct 0 ms 212 KB Output is correct
150 Correct 0 ms 212 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 0 ms 212 KB Output is correct
153 Correct 0 ms 212 KB Output is correct
154 Correct 139 ms 11240 KB Output is correct
155 Correct 138 ms 11300 KB Output is correct
156 Correct 129 ms 10912 KB Output is correct
157 Correct 125 ms 11488 KB Output is correct
158 Correct 135 ms 11120 KB Output is correct
159 Correct 143 ms 10912 KB Output is correct
160 Correct 115 ms 9084 KB Output is correct
161 Correct 5 ms 2216 KB Output is correct
162 Correct 107 ms 8612 KB Output is correct
163 Correct 173 ms 9292 KB Output is correct
164 Correct 4 ms 2260 KB Output is correct
165 Correct 142 ms 11424 KB Output is correct
166 Correct 143 ms 10748 KB Output is correct
167 Correct 137 ms 10548 KB Output is correct
168 Correct 143 ms 10524 KB Output is correct
169 Correct 135 ms 10684 KB Output is correct
170 Correct 132 ms 10956 KB Output is correct
171 Correct 139 ms 11048 KB Output is correct
172 Correct 132 ms 11044 KB Output is correct
173 Correct 137 ms 11052 KB Output is correct
174 Correct 133 ms 10700 KB Output is correct
175 Correct 131 ms 10824 KB Output is correct
176 Correct 137 ms 10956 KB Output is correct
177 Correct 141 ms 10956 KB Output is correct
178 Correct 145 ms 11028 KB Output is correct
179 Correct 130 ms 10716 KB Output is correct
180 Correct 135 ms 11060 KB Output is correct
181 Correct 138 ms 11000 KB Output is correct
182 Correct 134 ms 11528 KB Output is correct
183 Correct 132 ms 11516 KB Output is correct
184 Correct 135 ms 11256 KB Output is correct
185 Correct 109 ms 8076 KB Output is correct
186 Correct 118 ms 8836 KB Output is correct
187 Correct 136 ms 9164 KB Output is correct
188 Correct 131 ms 9932 KB Output is correct
189 Correct 132 ms 8700 KB Output is correct
190 Correct 127 ms 8064 KB Output is correct
191 Correct 127 ms 9432 KB Output is correct
192 Correct 123 ms 9160 KB Output is correct
193 Correct 131 ms 11436 KB Output is correct
194 Correct 130 ms 10932 KB Output is correct
195 Correct 164 ms 11156 KB Output is correct
196 Correct 134 ms 11292 KB Output is correct
197 Correct 4 ms 2260 KB Output is correct
198 Correct 4 ms 2184 KB Output is correct
199 Correct 4 ms 2156 KB Output is correct
200 Correct 4 ms 2152 KB Output is correct
201 Correct 4 ms 2180 KB Output is correct
202 Correct 4 ms 2132 KB Output is correct
203 Correct 4 ms 2260 KB Output is correct
204 Correct 4 ms 2184 KB Output is correct