// correct/subtask2.cpp
#include "sphinx.h"
using namespace std;
vector<int> find_colours(int N, vector<int> /*X*/, vector<int> /*Y*/) {
vector<int> F(N);
for (int i = 0; i < N; ++i) {
for (int c = 0; c < N; ++c) {
vector<int> ord(N, c);
ord[i] = -1;
if (perform_experiment(ord) == 1) {
F[i] = c;
break;
}
}
}
return F;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 6 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 2 |
2 |
Correct |
0 ms |
344 KB |
#experiments: 3 |
3 |
Correct |
1 ms |
344 KB |
#experiments: 3 |
4 |
Correct |
0 ms |
344 KB |
#experiments: 4 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 6 |
2 |
Correct |
0 ms |
344 KB |
#experiments: 2 |
3 |
Correct |
0 ms |
344 KB |
#experiments: 3 |
4 |
Correct |
1 ms |
344 KB |
#experiments: 3 |
5 |
Correct |
0 ms |
344 KB |
#experiments: 4 |
6 |
Correct |
10 ms |
344 KB |
#experiments: 1250 |
7 |
Correct |
10 ms |
344 KB |
#experiments: 785 |
8 |
Correct |
14 ms |
344 KB |
#experiments: 1613 |
9 |
Correct |
10 ms |
344 KB |
#experiments: 1353 |
10 |
Correct |
12 ms |
344 KB |
#experiments: 1138 |
11 |
Correct |
12 ms |
344 KB |
#experiments: 978 |
12 |
Correct |
14 ms |
344 KB |
#experiments: 1278 |
13 |
Correct |
9 ms |
344 KB |
#experiments: 1275 |
14 |
Correct |
6 ms |
344 KB |
#experiments: 750 |
15 |
Correct |
7 ms |
344 KB |
#experiments: 920 |
16 |
Correct |
10 ms |
344 KB |
#experiments: 1361 |
17 |
Correct |
11 ms |
344 KB |
#experiments: 1109 |
18 |
Correct |
16 ms |
344 KB |
#experiments: 1506 |
19 |
Correct |
11 ms |
344 KB |
#experiments: 1280 |
20 |
Correct |
12 ms |
344 KB |
#experiments: 1376 |
21 |
Correct |
10 ms |
344 KB |
#experiments: 1275 |
22 |
Correct |
2 ms |
344 KB |
#experiments: 196 |
23 |
Correct |
1 ms |
344 KB |
#experiments: 150 |
24 |
Correct |
3 ms |
344 KB |
#experiments: 312 |
25 |
Correct |
6 ms |
344 KB |
#experiments: 650 |
26 |
Correct |
11 ms |
344 KB |
#experiments: 966 |
27 |
Correct |
9 ms |
344 KB |
#experiments: 1071 |
28 |
Correct |
12 ms |
344 KB |
#experiments: 1208 |
29 |
Correct |
10 ms |
344 KB |
#experiments: 1179 |
30 |
Correct |
9 ms |
344 KB |
#experiments: 1209 |
31 |
Correct |
14 ms |
344 KB |
#experiments: 1187 |
32 |
Correct |
14 ms |
344 KB |
#experiments: 1417 |
33 |
Correct |
18 ms |
344 KB |
#experiments: 1470 |
34 |
Correct |
15 ms |
352 KB |
#experiments: 1275 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 2 |
2 |
Correct |
0 ms |
344 KB |
#experiments: 3 |
3 |
Correct |
1 ms |
344 KB |
#experiments: 3 |
4 |
Correct |
0 ms |
344 KB |
#experiments: 4 |
5 |
Correct |
10 ms |
344 KB |
#experiments: 1250 |
6 |
Correct |
10 ms |
344 KB |
#experiments: 785 |
7 |
Correct |
14 ms |
344 KB |
#experiments: 1613 |
8 |
Correct |
10 ms |
344 KB |
#experiments: 1353 |
9 |
Correct |
12 ms |
344 KB |
#experiments: 1138 |
10 |
Correct |
12 ms |
344 KB |
#experiments: 978 |
11 |
Correct |
14 ms |
344 KB |
#experiments: 1278 |
12 |
Correct |
9 ms |
344 KB |
#experiments: 1275 |
13 |
Incorrect |
56 ms |
408 KB |
#experiments reached 2751 |
14 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 2 |
2 |
Correct |
0 ms |
344 KB |
#experiments: 3 |
3 |
Correct |
1 ms |
344 KB |
#experiments: 3 |
4 |
Correct |
0 ms |
344 KB |
#experiments: 4 |
5 |
Correct |
6 ms |
344 KB |
#experiments: 750 |
6 |
Correct |
7 ms |
344 KB |
#experiments: 920 |
7 |
Correct |
10 ms |
344 KB |
#experiments: 1361 |
8 |
Correct |
11 ms |
344 KB |
#experiments: 1109 |
9 |
Correct |
16 ms |
344 KB |
#experiments: 1506 |
10 |
Correct |
11 ms |
344 KB |
#experiments: 1280 |
11 |
Correct |
12 ms |
344 KB |
#experiments: 1376 |
12 |
Correct |
10 ms |
344 KB |
#experiments: 1275 |
13 |
Incorrect |
74 ms |
888 KB |
#experiments reached 2751 |
14 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
#experiments: 6 |
2 |
Correct |
0 ms |
344 KB |
#experiments: 2 |
3 |
Correct |
0 ms |
344 KB |
#experiments: 3 |
4 |
Correct |
1 ms |
344 KB |
#experiments: 3 |
5 |
Correct |
0 ms |
344 KB |
#experiments: 4 |
6 |
Correct |
10 ms |
344 KB |
#experiments: 1250 |
7 |
Correct |
10 ms |
344 KB |
#experiments: 785 |
8 |
Correct |
14 ms |
344 KB |
#experiments: 1613 |
9 |
Correct |
10 ms |
344 KB |
#experiments: 1353 |
10 |
Correct |
12 ms |
344 KB |
#experiments: 1138 |
11 |
Correct |
12 ms |
344 KB |
#experiments: 978 |
12 |
Correct |
14 ms |
344 KB |
#experiments: 1278 |
13 |
Correct |
9 ms |
344 KB |
#experiments: 1275 |
14 |
Correct |
6 ms |
344 KB |
#experiments: 750 |
15 |
Correct |
7 ms |
344 KB |
#experiments: 920 |
16 |
Correct |
10 ms |
344 KB |
#experiments: 1361 |
17 |
Correct |
11 ms |
344 KB |
#experiments: 1109 |
18 |
Correct |
16 ms |
344 KB |
#experiments: 1506 |
19 |
Correct |
11 ms |
344 KB |
#experiments: 1280 |
20 |
Correct |
12 ms |
344 KB |
#experiments: 1376 |
21 |
Correct |
10 ms |
344 KB |
#experiments: 1275 |
22 |
Correct |
2 ms |
344 KB |
#experiments: 196 |
23 |
Correct |
1 ms |
344 KB |
#experiments: 150 |
24 |
Correct |
3 ms |
344 KB |
#experiments: 312 |
25 |
Correct |
6 ms |
344 KB |
#experiments: 650 |
26 |
Correct |
11 ms |
344 KB |
#experiments: 966 |
27 |
Correct |
9 ms |
344 KB |
#experiments: 1071 |
28 |
Correct |
12 ms |
344 KB |
#experiments: 1208 |
29 |
Correct |
10 ms |
344 KB |
#experiments: 1179 |
30 |
Correct |
9 ms |
344 KB |
#experiments: 1209 |
31 |
Correct |
14 ms |
344 KB |
#experiments: 1187 |
32 |
Correct |
14 ms |
344 KB |
#experiments: 1417 |
33 |
Correct |
18 ms |
344 KB |
#experiments: 1470 |
34 |
Correct |
15 ms |
352 KB |
#experiments: 1275 |
35 |
Incorrect |
56 ms |
408 KB |
#experiments reached 2751 |
36 |
Halted |
0 ms |
0 KB |
- |