# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1035654 | vjudge1 | Shuffle (NOI19_shuffle) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "shuffle.h"
#include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
const int N = 6;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
vector<int> s, ans;
vector<int> solve(int N, int B, int K, int Q, int ST) {
ans.resize(N);
s.resize(N);
for (int i = 0; i < N; i++) {
s[i] = i;
}
vector<vector<int>> a(B, vector<int>(K));
for (int i = 0; i < B; i++) {
for (int j = 0; j < K; j++) {
a[i][j] = i*K + j;
}
}
vector<vector<int>> b = shuffle(a);
while (1) {