# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
573521 | neonaht | 순열 (APIO22_perm) | C++17 | 2 ms | 340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "perm.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const int SZ=207;
int fen[SZ];
void update(int x,int val) {
while(x<SZ) {
fen[x]+=val;
x+=(x&-x);
}
return ;
}
int query(int x) {
int sum(0);
while(x) {
sum+=fen[x];
x-=(x&-x);
}
return sum;
}
std::vector<int> construct_permutation(long long k)
{
for(int i=0;i<SZ;i++) fen[i]=0;
if(k==2) return {0};
--k;
vector <int> res,seq;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |