Submission #1101679

# Submission time Handle Problem Language Result Execution time Memory
1101679 2024-10-16T15:16:21 Z NoMercy Colors (BOI20_colors) C++17
22 / 100
1 ms 512 KB
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int ask (ll x) {
	cout << "? " << x << endl;
	int res;
	cin >> res;
	return res;
}

int32_t main () {

	// ios_base::sync_with_stdio(0); 
	// cin.tie(0); 
	// cout.tie(0); 

	ll N;
	cin >> N;
	ll ind = 1, lo = 0, hi = N;
	vector<ll> all;
	map<ll, bool> used;
    while (lo + 1 < hi) {
        ll mid = (lo + hi) >> 1;
		all.push_back(mid);
        lo = mid;
    }
	reverse(all.begin(), all.end());
	for (int i = 0;i < all.size();i ++) {
		ind = ind + (ind + all[i] <= N ? all[i] : -all[i]);
	}
    ask (ind);
	lo = 0;
	hi = N;
	while (lo + 1 < hi) {
		ll mid = (lo + hi) >> 1;
		// cout << lo << " " << mid << " " << hi << " " << ind << "\n";
		if (ind - mid >= 1 && used[ind - mid] == false) {
			if (ask (ind - mid) == 1) {
				hi = mid;
			} else {
				lo = mid;
			}
			ind = ind - mid;
		} else if (ind + mid <= N && used[ind + mid] == false) {
			if (ask (ind + mid) == 1) {
				hi = mid;
			} else {
				lo = mid;
			}
			ind = ind + mid;
		} else {
			if (ind - 1 >= N - ind) {
				if (ask(1) == 1) {
					hi = ind;
				} else {
					lo = ind;
				}
				ind = 1;
			} else {
				if (ask(N) == 1) {
					hi = N - ind;
				} else {
					lo = N - ind;
				}
				ind = N;
			}
		}
		used[ind] = true;
	}
	cout << "= " << hi << endl;
}

Compilation message

Colors.cpp: In function 'int32_t main()':
Colors.cpp:30:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |  for (int i = 0;i < all.size();i ++) {
      |                 ~~^~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB OK (4 queries)
2 Correct 1 ms 336 KB OK (7 queries)
3 Correct 1 ms 336 KB OK (4 queries)
4 Correct 1 ms 336 KB OK (5 queries)
5 Correct 1 ms 336 KB OK (5 queries)
6 Correct 1 ms 336 KB OK (7 queries)
7 Correct 1 ms 336 KB OK (7 queries)
8 Correct 1 ms 336 KB OK (6 queries)
9 Correct 1 ms 336 KB OK (7 queries)
10 Correct 1 ms 336 KB OK (4 queries)
11 Correct 1 ms 336 KB OK (5 queries)
12 Correct 1 ms 336 KB OK (6 queries)
13 Correct 1 ms 336 KB OK (7 queries)
14 Correct 1 ms 336 KB OK (7 queries)
15 Correct 1 ms 336 KB OK (7 queries)
16 Correct 1 ms 336 KB OK (7 queries)
17 Correct 1 ms 336 KB OK (7 queries)
18 Correct 1 ms 336 KB OK (6 queries)
19 Correct 1 ms 336 KB OK (6 queries)
20 Correct 1 ms 336 KB OK (7 queries)
21 Correct 1 ms 336 KB OK (7 queries)
22 Correct 1 ms 336 KB OK (2 queries)
23 Correct 1 ms 336 KB OK (2 queries)
24 Correct 1 ms 336 KB OK (3 queries)
25 Correct 1 ms 336 KB OK (3 queries)
26 Correct 0 ms 512 KB OK (2 queries)
27 Correct 1 ms 336 KB OK (3 queries)
28 Correct 1 ms 336 KB OK (3 queries)
29 Correct 1 ms 336 KB OK (3 queries)
30 Correct 1 ms 336 KB OK (3 queries)
31 Correct 1 ms 336 KB OK (4 queries)
32 Correct 1 ms 504 KB OK (4 queries)
33 Correct 1 ms 336 KB OK (3 queries)
34 Correct 1 ms 336 KB OK (3 queries)
35 Correct 1 ms 336 KB OK (3 queries)
36 Correct 1 ms 504 KB OK (4 queries)
37 Correct 1 ms 336 KB OK (4 queries)
38 Correct 1 ms 336 KB OK (3 queries)
39 Correct 1 ms 336 KB OK (4 queries)
40 Correct 1 ms 336 KB OK (4 queries)
41 Correct 1 ms 336 KB OK (3 queries)
42 Correct 1 ms 336 KB OK (4 queries)
43 Correct 1 ms 336 KB OK (4 queries)
44 Correct 1 ms 336 KB OK (4 queries)
45 Correct 1 ms 336 KB OK (4 queries)
46 Correct 1 ms 336 KB OK (4 queries)
47 Correct 1 ms 336 KB OK (4 queries)
48 Correct 1 ms 336 KB OK (3 queries)
49 Correct 1 ms 336 KB OK (4 queries)
50 Correct 1 ms 336 KB OK (4 queries)
51 Correct 1 ms 336 KB OK (4 queries)
52 Correct 1 ms 336 KB OK (4 queries)
53 Correct 1 ms 336 KB OK (4 queries)
54 Correct 1 ms 336 KB OK (4 queries)
55 Correct 1 ms 336 KB OK (4 queries)
56 Correct 1 ms 336 KB OK (4 queries)
57 Correct 1 ms 336 KB OK (6 queries)
58 Correct 1 ms 336 KB OK (6 queries)
59 Correct 1 ms 504 KB OK (7 queries)
60 Correct 1 ms 336 KB OK (7 queries)
61 Correct 1 ms 336 KB OK (6 queries)
62 Correct 1 ms 336 KB OK (7 queries)
63 Correct 1 ms 336 KB OK (7 queries)
64 Correct 1 ms 428 KB OK (7 queries)
65 Correct 1 ms 336 KB OK (7 queries)
66 Correct 1 ms 336 KB OK (7 queries)
67 Correct 1 ms 336 KB OK (7 queries)
68 Correct 1 ms 336 KB OK (7 queries)
69 Correct 1 ms 336 KB OK (7 queries)
70 Correct 1 ms 336 KB OK (7 queries)
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB OK (4 queries)
2 Correct 1 ms 336 KB OK (7 queries)
3 Correct 1 ms 336 KB OK (4 queries)
4 Correct 1 ms 336 KB OK (5 queries)
5 Correct 1 ms 336 KB OK (5 queries)
6 Correct 1 ms 336 KB OK (7 queries)
7 Correct 1 ms 336 KB OK (7 queries)
8 Correct 1 ms 336 KB OK (6 queries)
9 Correct 1 ms 336 KB OK (7 queries)
10 Correct 1 ms 336 KB OK (4 queries)
11 Correct 1 ms 336 KB OK (5 queries)
12 Correct 1 ms 336 KB OK (6 queries)
13 Correct 1 ms 336 KB OK (7 queries)
14 Correct 1 ms 336 KB OK (7 queries)
15 Correct 1 ms 336 KB OK (7 queries)
16 Correct 1 ms 336 KB OK (7 queries)
17 Correct 1 ms 336 KB OK (7 queries)
18 Correct 1 ms 336 KB OK (6 queries)
19 Correct 1 ms 336 KB OK (6 queries)
20 Correct 1 ms 336 KB OK (7 queries)
21 Correct 1 ms 336 KB OK (7 queries)
22 Correct 1 ms 336 KB OK (2 queries)
23 Correct 1 ms 336 KB OK (2 queries)
24 Correct 1 ms 336 KB OK (3 queries)
25 Correct 1 ms 336 KB OK (3 queries)
26 Correct 0 ms 512 KB OK (2 queries)
27 Correct 1 ms 336 KB OK (3 queries)
28 Correct 1 ms 336 KB OK (3 queries)
29 Correct 1 ms 336 KB OK (3 queries)
30 Correct 1 ms 336 KB OK (3 queries)
31 Correct 1 ms 336 KB OK (4 queries)
32 Correct 1 ms 504 KB OK (4 queries)
33 Correct 1 ms 336 KB OK (3 queries)
34 Correct 1 ms 336 KB OK (3 queries)
35 Correct 1 ms 336 KB OK (3 queries)
36 Correct 1 ms 504 KB OK (4 queries)
37 Correct 1 ms 336 KB OK (4 queries)
38 Correct 1 ms 336 KB OK (3 queries)
39 Correct 1 ms 336 KB OK (4 queries)
40 Correct 1 ms 336 KB OK (4 queries)
41 Correct 1 ms 336 KB OK (3 queries)
42 Correct 1 ms 336 KB OK (4 queries)
43 Correct 1 ms 336 KB OK (4 queries)
44 Correct 1 ms 336 KB OK (4 queries)
45 Correct 1 ms 336 KB OK (4 queries)
46 Correct 1 ms 336 KB OK (4 queries)
47 Correct 1 ms 336 KB OK (4 queries)
48 Correct 1 ms 336 KB OK (3 queries)
49 Correct 1 ms 336 KB OK (4 queries)
50 Correct 1 ms 336 KB OK (4 queries)
51 Correct 1 ms 336 KB OK (4 queries)
52 Correct 1 ms 336 KB OK (4 queries)
53 Correct 1 ms 336 KB OK (4 queries)
54 Correct 1 ms 336 KB OK (4 queries)
55 Correct 1 ms 336 KB OK (4 queries)
56 Correct 1 ms 336 KB OK (4 queries)
57 Correct 1 ms 336 KB OK (6 queries)
58 Correct 1 ms 336 KB OK (6 queries)
59 Correct 1 ms 504 KB OK (7 queries)
60 Correct 1 ms 336 KB OK (7 queries)
61 Correct 1 ms 336 KB OK (6 queries)
62 Correct 1 ms 336 KB OK (7 queries)
63 Correct 1 ms 336 KB OK (7 queries)
64 Correct 1 ms 428 KB OK (7 queries)
65 Correct 1 ms 336 KB OK (7 queries)
66 Correct 1 ms 336 KB OK (7 queries)
67 Correct 1 ms 336 KB OK (7 queries)
68 Correct 1 ms 336 KB OK (7 queries)
69 Correct 1 ms 336 KB OK (7 queries)
70 Correct 1 ms 336 KB OK (7 queries)
71 Correct 1 ms 336 KB OK (7 queries)
72 Correct 1 ms 336 KB OK (8 queries)
73 Correct 1 ms 336 KB OK (8 queries)
74 Correct 1 ms 336 KB OK (8 queries)
75 Correct 1 ms 336 KB OK (8 queries)
76 Correct 1 ms 336 KB OK (8 queries)
77 Correct 1 ms 336 KB OK (8 queries)
78 Correct 1 ms 336 KB OK (8 queries)
79 Correct 1 ms 368 KB OK (8 queries)
80 Correct 1 ms 336 KB OK (8 queries)
81 Correct 1 ms 336 KB OK (8 queries)
82 Correct 1 ms 336 KB OK (8 queries)
83 Correct 1 ms 336 KB OK (8 queries)
84 Correct 1 ms 504 KB OK (7 queries)
85 Correct 1 ms 336 KB OK (8 queries)
86 Correct 1 ms 336 KB OK (8 queries)
87 Correct 1 ms 336 KB OK (7 queries)
88 Correct 1 ms 336 KB OK (7 queries)
89 Correct 1 ms 336 KB OK (8 queries)
90 Correct 1 ms 336 KB OK (8 queries)
91 Correct 1 ms 336 KB OK (7 queries)
92 Correct 1 ms 336 KB OK (8 queries)
93 Correct 1 ms 336 KB OK (7 queries)
94 Correct 1 ms 504 KB OK (8 queries)
95 Correct 1 ms 336 KB OK (8 queries)
96 Correct 1 ms 336 KB OK (8 queries)
97 Correct 1 ms 336 KB OK (8 queries)
98 Correct 1 ms 336 KB OK (7 queries)
99 Correct 1 ms 504 KB OK (7 queries)
100 Correct 1 ms 336 KB OK (8 queries)
101 Correct 1 ms 504 KB OK (7 queries)
102 Correct 1 ms 348 KB OK (7 queries)
103 Correct 1 ms 336 KB OK (7 queries)
104 Correct 1 ms 336 KB OK (8 queries)
105 Correct 1 ms 336 KB OK (8 queries)
106 Correct 1 ms 336 KB OK (14 queries)
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB OK (4 queries)
2 Correct 1 ms 336 KB OK (7 queries)
3 Correct 1 ms 336 KB OK (4 queries)
4 Correct 1 ms 336 KB OK (5 queries)
5 Correct 1 ms 336 KB OK (5 queries)
6 Correct 1 ms 336 KB OK (7 queries)
7 Correct 1 ms 336 KB OK (7 queries)
8 Correct 1 ms 336 KB OK (6 queries)
9 Correct 1 ms 336 KB OK (7 queries)
10 Correct 1 ms 336 KB OK (4 queries)
11 Correct 1 ms 336 KB OK (5 queries)
12 Correct 1 ms 336 KB OK (6 queries)
13 Correct 1 ms 336 KB OK (7 queries)
14 Correct 1 ms 336 KB OK (7 queries)
15 Correct 1 ms 336 KB OK (7 queries)
16 Correct 1 ms 336 KB OK (7 queries)
17 Correct 1 ms 336 KB OK (7 queries)
18 Correct 1 ms 336 KB OK (6 queries)
19 Correct 1 ms 336 KB OK (6 queries)
20 Correct 1 ms 336 KB OK (7 queries)
21 Correct 1 ms 336 KB OK (7 queries)
22 Correct 1 ms 336 KB OK (2 queries)
23 Correct 1 ms 336 KB OK (2 queries)
24 Correct 1 ms 336 KB OK (3 queries)
25 Correct 1 ms 336 KB OK (3 queries)
26 Correct 0 ms 512 KB OK (2 queries)
27 Correct 1 ms 336 KB OK (3 queries)
28 Correct 1 ms 336 KB OK (3 queries)
29 Correct 1 ms 336 KB OK (3 queries)
30 Correct 1 ms 336 KB OK (3 queries)
31 Correct 1 ms 336 KB OK (4 queries)
32 Correct 1 ms 504 KB OK (4 queries)
33 Correct 1 ms 336 KB OK (3 queries)
34 Correct 1 ms 336 KB OK (3 queries)
35 Correct 1 ms 336 KB OK (3 queries)
36 Correct 1 ms 504 KB OK (4 queries)
37 Correct 1 ms 336 KB OK (4 queries)
38 Correct 1 ms 336 KB OK (3 queries)
39 Correct 1 ms 336 KB OK (4 queries)
40 Correct 1 ms 336 KB OK (4 queries)
41 Correct 1 ms 336 KB OK (3 queries)
42 Correct 1 ms 336 KB OK (4 queries)
43 Correct 1 ms 336 KB OK (4 queries)
44 Correct 1 ms 336 KB OK (4 queries)
45 Correct 1 ms 336 KB OK (4 queries)
46 Correct 1 ms 336 KB OK (4 queries)
47 Correct 1 ms 336 KB OK (4 queries)
48 Correct 1 ms 336 KB OK (3 queries)
49 Correct 1 ms 336 KB OK (4 queries)
50 Correct 1 ms 336 KB OK (4 queries)
51 Correct 1 ms 336 KB OK (4 queries)
52 Correct 1 ms 336 KB OK (4 queries)
53 Correct 1 ms 336 KB OK (4 queries)
54 Correct 1 ms 336 KB OK (4 queries)
55 Correct 1 ms 336 KB OK (4 queries)
56 Correct 1 ms 336 KB OK (4 queries)
57 Correct 1 ms 336 KB OK (6 queries)
58 Correct 1 ms 336 KB OK (6 queries)
59 Correct 1 ms 504 KB OK (7 queries)
60 Correct 1 ms 336 KB OK (7 queries)
61 Correct 1 ms 336 KB OK (6 queries)
62 Correct 1 ms 336 KB OK (7 queries)
63 Correct 1 ms 336 KB OK (7 queries)
64 Correct 1 ms 428 KB OK (7 queries)
65 Correct 1 ms 336 KB OK (7 queries)
66 Correct 1 ms 336 KB OK (7 queries)
67 Correct 1 ms 336 KB OK (7 queries)
68 Correct 1 ms 336 KB OK (7 queries)
69 Correct 1 ms 336 KB OK (7 queries)
70 Correct 1 ms 336 KB OK (7 queries)
71 Correct 1 ms 336 KB OK (7 queries)
72 Correct 1 ms 336 KB OK (8 queries)
73 Correct 1 ms 336 KB OK (8 queries)
74 Correct 1 ms 336 KB OK (8 queries)
75 Correct 1 ms 336 KB OK (8 queries)
76 Correct 1 ms 336 KB OK (8 queries)
77 Correct 1 ms 336 KB OK (8 queries)
78 Correct 1 ms 336 KB OK (8 queries)
79 Correct 1 ms 368 KB OK (8 queries)
80 Correct 1 ms 336 KB OK (8 queries)
81 Correct 1 ms 336 KB OK (8 queries)
82 Correct 1 ms 336 KB OK (8 queries)
83 Correct 1 ms 336 KB OK (8 queries)
84 Correct 1 ms 504 KB OK (7 queries)
85 Correct 1 ms 336 KB OK (8 queries)
86 Correct 1 ms 336 KB OK (8 queries)
87 Correct 1 ms 336 KB OK (7 queries)
88 Correct 1 ms 336 KB OK (7 queries)
89 Correct 1 ms 336 KB OK (8 queries)
90 Correct 1 ms 336 KB OK (8 queries)
91 Correct 1 ms 336 KB OK (7 queries)
92 Correct 1 ms 336 KB OK (8 queries)
93 Correct 1 ms 336 KB OK (7 queries)
94 Correct 1 ms 504 KB OK (8 queries)
95 Correct 1 ms 336 KB OK (8 queries)
96 Correct 1 ms 336 KB OK (8 queries)
97 Correct 1 ms 336 KB OK (8 queries)
98 Correct 1 ms 336 KB OK (7 queries)
99 Correct 1 ms 504 KB OK (7 queries)
100 Correct 1 ms 336 KB OK (8 queries)
101 Correct 1 ms 504 KB OK (7 queries)
102 Correct 1 ms 348 KB OK (7 queries)
103 Correct 1 ms 336 KB OK (7 queries)
104 Correct 1 ms 336 KB OK (8 queries)
105 Correct 1 ms 336 KB OK (8 queries)
106 Correct 1 ms 336 KB OK (14 queries)
107 Correct 1 ms 336 KB OK (10 queries)
108 Correct 1 ms 336 KB OK (11 queries)
109 Correct 1 ms 336 KB OK (10 queries)
110 Correct 1 ms 336 KB OK (11 queries)
111 Correct 1 ms 336 KB OK (11 queries)
112 Correct 1 ms 336 KB OK (11 queries)
113 Correct 1 ms 336 KB OK (11 queries)
114 Correct 1 ms 336 KB OK (11 queries)
115 Correct 1 ms 336 KB OK (11 queries)
116 Correct 1 ms 336 KB OK (11 queries)
117 Incorrect 1 ms 336 KB Hair color 331 was used multiple times
118 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB OK (4 queries)
2 Correct 1 ms 336 KB OK (7 queries)
3 Correct 1 ms 336 KB OK (4 queries)
4 Correct 1 ms 336 KB OK (5 queries)
5 Correct 1 ms 336 KB OK (5 queries)
6 Correct 1 ms 336 KB OK (7 queries)
7 Correct 1 ms 336 KB OK (7 queries)
8 Correct 1 ms 336 KB OK (6 queries)
9 Correct 1 ms 336 KB OK (7 queries)
10 Correct 1 ms 336 KB OK (4 queries)
11 Correct 1 ms 336 KB OK (5 queries)
12 Correct 1 ms 336 KB OK (6 queries)
13 Correct 1 ms 336 KB OK (7 queries)
14 Correct 1 ms 336 KB OK (7 queries)
15 Correct 1 ms 336 KB OK (7 queries)
16 Correct 1 ms 336 KB OK (7 queries)
17 Correct 1 ms 336 KB OK (7 queries)
18 Correct 1 ms 336 KB OK (6 queries)
19 Correct 1 ms 336 KB OK (6 queries)
20 Correct 1 ms 336 KB OK (7 queries)
21 Correct 1 ms 336 KB OK (7 queries)
22 Correct 1 ms 336 KB OK (2 queries)
23 Correct 1 ms 336 KB OK (2 queries)
24 Correct 1 ms 336 KB OK (3 queries)
25 Correct 1 ms 336 KB OK (3 queries)
26 Correct 0 ms 512 KB OK (2 queries)
27 Correct 1 ms 336 KB OK (3 queries)
28 Correct 1 ms 336 KB OK (3 queries)
29 Correct 1 ms 336 KB OK (3 queries)
30 Correct 1 ms 336 KB OK (3 queries)
31 Correct 1 ms 336 KB OK (4 queries)
32 Correct 1 ms 504 KB OK (4 queries)
33 Correct 1 ms 336 KB OK (3 queries)
34 Correct 1 ms 336 KB OK (3 queries)
35 Correct 1 ms 336 KB OK (3 queries)
36 Correct 1 ms 504 KB OK (4 queries)
37 Correct 1 ms 336 KB OK (4 queries)
38 Correct 1 ms 336 KB OK (3 queries)
39 Correct 1 ms 336 KB OK (4 queries)
40 Correct 1 ms 336 KB OK (4 queries)
41 Correct 1 ms 336 KB OK (3 queries)
42 Correct 1 ms 336 KB OK (4 queries)
43 Correct 1 ms 336 KB OK (4 queries)
44 Correct 1 ms 336 KB OK (4 queries)
45 Correct 1 ms 336 KB OK (4 queries)
46 Correct 1 ms 336 KB OK (4 queries)
47 Correct 1 ms 336 KB OK (4 queries)
48 Correct 1 ms 336 KB OK (3 queries)
49 Correct 1 ms 336 KB OK (4 queries)
50 Correct 1 ms 336 KB OK (4 queries)
51 Correct 1 ms 336 KB OK (4 queries)
52 Correct 1 ms 336 KB OK (4 queries)
53 Correct 1 ms 336 KB OK (4 queries)
54 Correct 1 ms 336 KB OK (4 queries)
55 Correct 1 ms 336 KB OK (4 queries)
56 Correct 1 ms 336 KB OK (4 queries)
57 Correct 1 ms 336 KB OK (6 queries)
58 Correct 1 ms 336 KB OK (6 queries)
59 Correct 1 ms 504 KB OK (7 queries)
60 Correct 1 ms 336 KB OK (7 queries)
61 Correct 1 ms 336 KB OK (6 queries)
62 Correct 1 ms 336 KB OK (7 queries)
63 Correct 1 ms 336 KB OK (7 queries)
64 Correct 1 ms 428 KB OK (7 queries)
65 Correct 1 ms 336 KB OK (7 queries)
66 Correct 1 ms 336 KB OK (7 queries)
67 Correct 1 ms 336 KB OK (7 queries)
68 Correct 1 ms 336 KB OK (7 queries)
69 Correct 1 ms 336 KB OK (7 queries)
70 Correct 1 ms 336 KB OK (7 queries)
71 Correct 1 ms 336 KB OK (7 queries)
72 Correct 1 ms 336 KB OK (8 queries)
73 Correct 1 ms 336 KB OK (8 queries)
74 Correct 1 ms 336 KB OK (8 queries)
75 Correct 1 ms 336 KB OK (8 queries)
76 Correct 1 ms 336 KB OK (8 queries)
77 Correct 1 ms 336 KB OK (8 queries)
78 Correct 1 ms 336 KB OK (8 queries)
79 Correct 1 ms 368 KB OK (8 queries)
80 Correct 1 ms 336 KB OK (8 queries)
81 Correct 1 ms 336 KB OK (8 queries)
82 Correct 1 ms 336 KB OK (8 queries)
83 Correct 1 ms 336 KB OK (8 queries)
84 Correct 1 ms 504 KB OK (7 queries)
85 Correct 1 ms 336 KB OK (8 queries)
86 Correct 1 ms 336 KB OK (8 queries)
87 Correct 1 ms 336 KB OK (7 queries)
88 Correct 1 ms 336 KB OK (7 queries)
89 Correct 1 ms 336 KB OK (8 queries)
90 Correct 1 ms 336 KB OK (8 queries)
91 Correct 1 ms 336 KB OK (7 queries)
92 Correct 1 ms 336 KB OK (8 queries)
93 Correct 1 ms 336 KB OK (7 queries)
94 Correct 1 ms 504 KB OK (8 queries)
95 Correct 1 ms 336 KB OK (8 queries)
96 Correct 1 ms 336 KB OK (8 queries)
97 Correct 1 ms 336 KB OK (8 queries)
98 Correct 1 ms 336 KB OK (7 queries)
99 Correct 1 ms 504 KB OK (7 queries)
100 Correct 1 ms 336 KB OK (8 queries)
101 Correct 1 ms 504 KB OK (7 queries)
102 Correct 1 ms 348 KB OK (7 queries)
103 Correct 1 ms 336 KB OK (7 queries)
104 Correct 1 ms 336 KB OK (8 queries)
105 Correct 1 ms 336 KB OK (8 queries)
106 Correct 1 ms 336 KB OK (14 queries)
107 Correct 1 ms 336 KB OK (10 queries)
108 Correct 1 ms 336 KB OK (11 queries)
109 Correct 1 ms 336 KB OK (10 queries)
110 Correct 1 ms 336 KB OK (11 queries)
111 Correct 1 ms 336 KB OK (11 queries)
112 Correct 1 ms 336 KB OK (11 queries)
113 Correct 1 ms 336 KB OK (11 queries)
114 Correct 1 ms 336 KB OK (11 queries)
115 Correct 1 ms 336 KB OK (11 queries)
116 Correct 1 ms 336 KB OK (11 queries)
117 Incorrect 1 ms 336 KB Hair color 331 was used multiple times
118 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB OK (4 queries)
2 Correct 1 ms 336 KB OK (7 queries)
3 Correct 1 ms 336 KB OK (4 queries)
4 Correct 1 ms 336 KB OK (5 queries)
5 Correct 1 ms 336 KB OK (5 queries)
6 Correct 1 ms 336 KB OK (7 queries)
7 Correct 1 ms 336 KB OK (7 queries)
8 Correct 1 ms 336 KB OK (6 queries)
9 Correct 1 ms 336 KB OK (7 queries)
10 Correct 1 ms 336 KB OK (4 queries)
11 Correct 1 ms 336 KB OK (5 queries)
12 Correct 1 ms 336 KB OK (6 queries)
13 Correct 1 ms 336 KB OK (7 queries)
14 Correct 1 ms 336 KB OK (7 queries)
15 Correct 1 ms 336 KB OK (7 queries)
16 Correct 1 ms 336 KB OK (7 queries)
17 Correct 1 ms 336 KB OK (7 queries)
18 Correct 1 ms 336 KB OK (6 queries)
19 Correct 1 ms 336 KB OK (6 queries)
20 Correct 1 ms 336 KB OK (7 queries)
21 Correct 1 ms 336 KB OK (7 queries)
22 Correct 1 ms 336 KB OK (2 queries)
23 Correct 1 ms 336 KB OK (2 queries)
24 Correct 1 ms 336 KB OK (3 queries)
25 Correct 1 ms 336 KB OK (3 queries)
26 Correct 0 ms 512 KB OK (2 queries)
27 Correct 1 ms 336 KB OK (3 queries)
28 Correct 1 ms 336 KB OK (3 queries)
29 Correct 1 ms 336 KB OK (3 queries)
30 Correct 1 ms 336 KB OK (3 queries)
31 Correct 1 ms 336 KB OK (4 queries)
32 Correct 1 ms 504 KB OK (4 queries)
33 Correct 1 ms 336 KB OK (3 queries)
34 Correct 1 ms 336 KB OK (3 queries)
35 Correct 1 ms 336 KB OK (3 queries)
36 Correct 1 ms 504 KB OK (4 queries)
37 Correct 1 ms 336 KB OK (4 queries)
38 Correct 1 ms 336 KB OK (3 queries)
39 Correct 1 ms 336 KB OK (4 queries)
40 Correct 1 ms 336 KB OK (4 queries)
41 Correct 1 ms 336 KB OK (3 queries)
42 Correct 1 ms 336 KB OK (4 queries)
43 Correct 1 ms 336 KB OK (4 queries)
44 Correct 1 ms 336 KB OK (4 queries)
45 Correct 1 ms 336 KB OK (4 queries)
46 Correct 1 ms 336 KB OK (4 queries)
47 Correct 1 ms 336 KB OK (4 queries)
48 Correct 1 ms 336 KB OK (3 queries)
49 Correct 1 ms 336 KB OK (4 queries)
50 Correct 1 ms 336 KB OK (4 queries)
51 Correct 1 ms 336 KB OK (4 queries)
52 Correct 1 ms 336 KB OK (4 queries)
53 Correct 1 ms 336 KB OK (4 queries)
54 Correct 1 ms 336 KB OK (4 queries)
55 Correct 1 ms 336 KB OK (4 queries)
56 Correct 1 ms 336 KB OK (4 queries)
57 Correct 1 ms 336 KB OK (6 queries)
58 Correct 1 ms 336 KB OK (6 queries)
59 Correct 1 ms 504 KB OK (7 queries)
60 Correct 1 ms 336 KB OK (7 queries)
61 Correct 1 ms 336 KB OK (6 queries)
62 Correct 1 ms 336 KB OK (7 queries)
63 Correct 1 ms 336 KB OK (7 queries)
64 Correct 1 ms 428 KB OK (7 queries)
65 Correct 1 ms 336 KB OK (7 queries)
66 Correct 1 ms 336 KB OK (7 queries)
67 Correct 1 ms 336 KB OK (7 queries)
68 Correct 1 ms 336 KB OK (7 queries)
69 Correct 1 ms 336 KB OK (7 queries)
70 Correct 1 ms 336 KB OK (7 queries)
71 Correct 1 ms 336 KB OK (7 queries)
72 Correct 1 ms 336 KB OK (8 queries)
73 Correct 1 ms 336 KB OK (8 queries)
74 Correct 1 ms 336 KB OK (8 queries)
75 Correct 1 ms 336 KB OK (8 queries)
76 Correct 1 ms 336 KB OK (8 queries)
77 Correct 1 ms 336 KB OK (8 queries)
78 Correct 1 ms 336 KB OK (8 queries)
79 Correct 1 ms 368 KB OK (8 queries)
80 Correct 1 ms 336 KB OK (8 queries)
81 Correct 1 ms 336 KB OK (8 queries)
82 Correct 1 ms 336 KB OK (8 queries)
83 Correct 1 ms 336 KB OK (8 queries)
84 Correct 1 ms 504 KB OK (7 queries)
85 Correct 1 ms 336 KB OK (8 queries)
86 Correct 1 ms 336 KB OK (8 queries)
87 Correct 1 ms 336 KB OK (7 queries)
88 Correct 1 ms 336 KB OK (7 queries)
89 Correct 1 ms 336 KB OK (8 queries)
90 Correct 1 ms 336 KB OK (8 queries)
91 Correct 1 ms 336 KB OK (7 queries)
92 Correct 1 ms 336 KB OK (8 queries)
93 Correct 1 ms 336 KB OK (7 queries)
94 Correct 1 ms 504 KB OK (8 queries)
95 Correct 1 ms 336 KB OK (8 queries)
96 Correct 1 ms 336 KB OK (8 queries)
97 Correct 1 ms 336 KB OK (8 queries)
98 Correct 1 ms 336 KB OK (7 queries)
99 Correct 1 ms 504 KB OK (7 queries)
100 Correct 1 ms 336 KB OK (8 queries)
101 Correct 1 ms 504 KB OK (7 queries)
102 Correct 1 ms 348 KB OK (7 queries)
103 Correct 1 ms 336 KB OK (7 queries)
104 Correct 1 ms 336 KB OK (8 queries)
105 Correct 1 ms 336 KB OK (8 queries)
106 Correct 1 ms 336 KB OK (14 queries)
107 Correct 1 ms 336 KB OK (10 queries)
108 Correct 1 ms 336 KB OK (11 queries)
109 Correct 1 ms 336 KB OK (10 queries)
110 Correct 1 ms 336 KB OK (11 queries)
111 Correct 1 ms 336 KB OK (11 queries)
112 Correct 1 ms 336 KB OK (11 queries)
113 Correct 1 ms 336 KB OK (11 queries)
114 Correct 1 ms 336 KB OK (11 queries)
115 Correct 1 ms 336 KB OK (11 queries)
116 Correct 1 ms 336 KB OK (11 queries)
117 Incorrect 1 ms 336 KB Hair color 331 was used multiple times
118 Halted 0 ms 0 KB -