| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1241898 | mathias_abadie | 스핑크스 (IOI24_sphinx) | C++20 | 0 ms | 412 KiB |
#include <bits/stdc++.h>
#include "sphinx.h"
using namespace std;
vector<int> find_colours(int N, vector<int> X, vector<int> Y) {
vector<int> color(N, -1);
vector<vector<int>> groups;
for (int v = 0; v < N; ++v) {
bool found = false;
for (int g = 0; g < groups.size(); ++g) {
vector<int> E(N, -1);
for (int u : groups[g])
E[u] = 0;
E[v] = 0;
int result = perform_experiment(E);
if (result == 1) {
color[v] = g;
groups[g].push_back(v);
found = true;
break;
}
}
if (!found) {
color[v] = groups.size();
groups.push_back({v});
}
}
return color;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
