# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
580733 | otonozadze | Super Dango Maker (JOI22_dango3) | C++17 | 3955 ms | 576 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dango3.h"
#include<bits/stdc++.h>
#define pb push_back
using namespace std; // namespace
void Solve(int N, int M) {
vector<int> qur;
vector<int> a[M+1];
for(int i=1; i<=N*M; i++){
int l=1; int r=M;
while(l<r){
qur.clear();
int m=(l+r+1)/2;
int fix[N*M+1];
for(int j=1; j<=N*M; j++){
fix[j]=0;
}
fix[i]=1;
for(int x=0; x<a[m].size(); x++){
fix[a[m][x]]=1;
}
for(int j=1; j<=N*M; j++){
if(fix[j]){
continue;
}
qur.pb(j);
}
int ans=Query(qur);
if(ans==M-1){
l=m;
}else{
r=m-1;
}
}
a[l].pb(i);
}
for(int i=1; i<=M; i++){
Answer(a[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... |