| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1037257 | juicy | Super Dango Maker (JOI22_dango3) | C++17 | 672 ms | 996 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "dango3.h"
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...) 42
#endif
void dc(vector<int> cands, int lay) {
if (lay == 1) {
Answer(cands);
return;
}
int md = lay / 2;
vector<bool> vs(cands.size());
vector<int> lt, rt;
for (int i = 0; i < cands.size(); ++i) {
vector<int> nw;
for (int j = 0; j < cands.size(); ++j) {
if (!vs[j] && i != j) {
nw.push_back(cands[j]);
}
}
if (Query(nw) >= md) {
vs[i] = 1;
rt.push_back(cands[i]);
} else {
lt.push_back(cands[i]);
}
}
dc(lt, md);
dc(rt, lay - md);
}
void Solve(int N, int M) {
vector<int> res(N * M);
iota(res.begin(), res.end(), 1);
dc(res, M);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
