| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 28491 | 三( ε:) (#68) | 1-Color Coloring (FXCUP2_coloring) | C++14 | 0 ms | 2028 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "coloring.h"
#include <bits/stdc++.h>
using namespace std;
void ColoringSame(int N)
{
	vector<int> hubo;
	for (int i = 2; i <= N; i++) hubo.push_back(i);
	int rem = 7300;
	while (hubo.size() > 1)
	{
		for (int j = 0; j < hubo.size() / 2; j++)
		{
			Color(hubo[j]);
			--rem;
		}
		if (GetColor(1) == 1)
		{
			hubo.erase(hubo.begin(), hubo.begin() + hubo.size() / 2);
		}
		else
		{
			hubo.erase(hubo.begin() + hubo.size() / 2, hubo.end());
		}
	}
	int backcolor = hubo[0];
	vector<int> x;
	for (int i = 2; i <= N; i++) if (i != backcolor) x.push_back(i);
	mt19937 mt{ random_device{}() };
	shuffle(x.begin(), x.end(), mt);
	Color(1);
	--rem;
	for (int i = 0; i < rem; i++) Color(x[i % x.size()]);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
