#include "coloring.h"
void ColoringSame(int N){
int i, j, k;
for (i = 2; i <= N; i++) {
Color(i);
if (!GetColor(1)) break;
}
for (j = 0; j < N; j++) for (k = 1; k <= N; k++) if (k != i) Color(k);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1120 KB |
Output is correct |
2 |
Correct |
0 ms |
1120 KB |
Output is correct |
3 |
Correct |
0 ms |
1120 KB |
Output is correct |
4 |
Correct |
0 ms |
1120 KB |
Output is correct |
5 |
Correct |
0 ms |
1120 KB |
Output is correct |
6 |
Correct |
0 ms |
1120 KB |
Output is correct |
7 |
Correct |
0 ms |
1120 KB |
Output is correct |
8 |
Correct |
0 ms |
1120 KB |
Output is correct |
9 |
Correct |
0 ms |
1120 KB |
Output is correct |
10 |
Correct |
0 ms |
1120 KB |
Output is correct |
11 |
Correct |
0 ms |
1120 KB |
Output is correct |
12 |
Correct |
0 ms |
1120 KB |
Output is correct |
13 |
Correct |
0 ms |
1120 KB |
Output is correct |
14 |
Correct |
0 ms |
1120 KB |
Output is correct |
15 |
Correct |
0 ms |
1120 KB |
Output is correct |
16 |
Incorrect |
0 ms |
1120 KB |
Output isn't correct |
17 |
Halted |
0 ms |
0 KB |
- |