Submission #28423

#TimeUsernameProblemLanguageResultExecution timeMemory
28423Sorry AcornCkiGuiziTeam (#68)1-Color Coloring (FXCUP2_coloring)C++14
1 / 1
0 ms1124 KiB
#include "coloring.h" #include <algorithm> using namespace std; int a[101]; void ColoringSame(int N){ int i, j, k; for (i = 1; i <= N; i++) a[i] = i; random_shuffle(a + 1, a + N + 1); for (i = 2; i <= N; i++) { Color(i); if (!GetColor(1)) break; } for (j = 0; j < 70; j++) for (k = 1; k <= N; k++) if (a[k] != i) Color(a[k]); }
#Verdict Execution timeMemoryGrader output
Fetching results...