# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
812629 | QwertyPi | Shuffle (NOI19_shuffle) | C++14 | 1 ms | 340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#ifndef EVEL
#include "shuffle.h"
#endif
#include <bits/stdc++.h>
using namespace std;
std::vector< std::vector<int> > shuffle(std::vector< std::vector<int> > packed_cards);
vector<int> solve(int N, int B, int K, int Q, int ST) {
std::vector< std::vector<int> > cards(B, std::vector<int>(K));
for(int i = 0; i < B; i++) for(int j = 0; j < K; j++) cards[i][j] = i * K + j + 1;
std::vector< std::vector<int> > v2 = shuffle(cards);
std::vector<int> ans; for(int i = 0; i < N; i++) ans.push_back(i + 1);
return ans;
}
#ifdef EVEL
std::vector< std::vector<int> > shuffle(std::vector< std::vector<int> > packed_cards){
int B = packed_cards.size(), K = packed_cards[0].size();
std::cout << "Q ";
for (int i = 0; i < B; i++) {
for(int j = 0; j < K; j++){
std::cout << packed_cards[i][j] << ' ';
}
}
std::cout << std::endl;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |