# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
754863 | definitelynotmee | Super Dango Maker (JOI22_dango3) | C++17 | 3296 ms | 656 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dango3.h"
#include<bits/stdc++.h>
#define ff first
#define ss second
#define all(x) x.begin(), x.end()
using namespace std;
using ll = long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;
template<typename T>
using matrix = vector<vector<T>>;
namespace {
int variable_example = 1;
} // namespace
void Solve(int N, int M) {
matrix<int> resp(M);
for(int i = 0; i < N*M; i++){
int ini = 0, fim = M;
while(ini!=fim){
int m = (ini+fim+1)>>1;
vector<int> ban(N*M);
for(int i = m+1; i < M; i++){
for(int j : resp[i])
ban[j] = 1;
}
ban[i] = 1;
vector<int> qry;
for(int i = 1; i <= N*M; i++){
if(!ban[i])
qry.push_back(i);
}
if(Query(qry) <= m)
ini = m;
else fim = m-1;
}
resp[ini].push_back(i);
}
for(int i = 0; i < M; i++)
Answer(resp[i]);
}
컴파일 시 표준 에러 (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... |