# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
980631 | Nexus | 순열 (APIO22_perm) | C++17 | 1 ms | 560 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const ll N=1e6+9,M=2e18+9,mod=1e9+7;
ll a[66],q,k,x,y,z;
vector<int>v;
ll po(ll X,ll Y)
{
if(!Y)return 1;
if(Y&1)return X*po(X,Y-1);
ll ret=po(X,Y/2);
return ret*ret;
}
ll log2(ll k)
{
ll g=0;
while(k>1)k/=2,++g;
return g;
}
vector<int>construct_permutation(ll k)
{
x=log2(k);
v.clear();
y=x-1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |