# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28306 | :thinking_face: (#68) | 1-Color Coloring (FXCUP2_coloring) | C++11 | 0 ms | 1120 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "coloring.h"
void ColoringSame(int N)
{
int s = GetColor(1);
if(s == N) return;
int start;
for(int i = 1; i <= N; i++)
{
Color(i);
int cur = GetColor(1);
if(cur > s)
{
start = i;
break;
}
}
for(int i = 1; i <= N; i++)
{
Color(start);
start++;
if(start > N) start -= N;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |