# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
572471 | model_code | 순열 (APIO22_perm) | C++17 | 3 ms | 468 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
* TASK: ROS/cdgp001/Increasing subsequences
* solution 3/2 log n
* Author: Karol Pokorski
*/
#include <bits/stdc++.h>
#include "perm.h"
using namespace std;
typedef long long int LL;
void apply_gadget(vector<int>& v,
const vector<int>& gadget) {
vector<int> gadget_items;
for (int x : gadget) if (x > 0) gadget_items.push_back(x);
sort(gadget_items.begin(), gadget_items.end());
for (int x : gadget_items)
for (int& y : v)
if (y >= x) y++;
int n_size = v.size() + gadget.size();
for (int x : gadget) {
if (x <= 0) v.push_back(n_size + x);
else v.push_back(x);
}
}
vector<int> dec2bin(LL x) {
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |