| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 969616 | dubabuba | 순열 (APIO22_perm) | C++17 | 2 ms | 600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "perm.h"
using namespace std;
typedef long long i64;
typedef vector<int> vi;
const int mxLOG = 62;
vi construct_permutation(i64 k) {
vi a;
for(int i = mxLOG - 1; i >= 0; i--) {
if((k & (1LL << i)) != (1LL << i)) continue;
if(a.size() == 0) {
for(int j = 0; j < i; j++)
a.push_back(j);
continue;
}
for(int &x : a)
if(x >= i)
x++;
a.push_back(i);
}
return a;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
