| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 618196 | penguinhacker | Super Dango Maker (JOI22_dango3) | C++17 | 333 ms | 524 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dango3.h"
#include <bits/stdc++.h>
using namespace std;
mt19937 rng(42);
void Solve(int n, int m) {
vector<bool> vis(n*m+1);
for (int rep=0; rep<m; ++rep) {
vector<int> v;
for (int i=1; i<=n*m; ++i)
if (!vis[i])
v.push_back(i);
while(1) {
shuffle(v.begin(), v.end(), rng);
int s=min((int)v.size(), 1900);
vector<int> v2(v.begin(), v.begin()+s);
if (Query(v2)) {
v=v2;
break;
}
}
while(v.size()>n) {
int x=v.back();
v.pop_back();
if (!Query(v))
v.insert(v.begin(), x);
}
Answer(v);
for (int i : v)
vis[i]=1;
}
}
컴파일 시 표준 에러 (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... | ||||
