# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
708480 | Essa2006 | Permutation (APIO22_perm) | C++17 | 5 ms | 380 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.
#include<bits/stdc++.h>
#include "perm.h"
using namespace std;
#define ll long long
#define endl '\n'
#define FF first
#define SS second
#define aint(a) a.begin(), a.end()
#define mod (int)(1000000007)
ll pw(ll a, ll b){
ll res=1;
while(b){
if(b&1)
res*=a;
a*=a, b/=2;
}
return res;
}
int gr(ll n){
ll pr=64;
ll l=0, r=64;
while(l<=r){
ll md=(l+r)/2;
if(pw(2, md)>n){
pr=md, r=md-1;
}
else
l=md+1;
}
return pr-1;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |