# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1000561 | De3b0o | Super Dango Maker (JOI22_dango3) | C++17 | 2583 ms | 892 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dango3.h"
#include<bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define in insert
#define pb push_back
#define ppb pop_back()
#define d3 ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define cans cout << ans << "\n";
#define yes cout << "Yes" << "\n";
#define no cout << "No" << "\n";
#define pll pair<ll,ll>
#define lin cout << "\n";
#define sqr 340
#define mod 1000000007
#define mid ((l+r)/2)
#define lc (2*x)
#define rc (2*x+1)
using namespace std;
ll n , m;
vector<int> ans[26];
bool vis[26][5001];
vector<ll> idx;
void Solve(int N, int M)
{
n=N;
m=M;
for(int i = 1 ; n*m>=i ; i++)
idx.pb(i);
random_shuffle(idx.begin(),idx.end());
for(int h = 0 ; n*m>h ; h++)
{
ll i = idx[h];
bool g = 0;
for(int j = 0 ; m>j ; j++)
{
if(ans[j].size()==n||g)
continue;
vector<int> q;
for(int jj = 1 ; n*m>=jj ; jj++)
{
if(vis[j][jj]||jj==i)
continue;
q.pb(jj);
}
if(Query(q)==m-1)
{
ans[j].pb(i);
vis[j][i]=1;
g=1;
}
}
}
for(int i = 0 ; m>i ; i++)
Answer(ans[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... |