# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1077513 | Halym2007 | Permutation (APIO22_perm) | C++17 | 3 ms | 600 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>
using namespace std;
#define ll long long
#define sz size()
#define ff first
#define ss second
#define pb push_back
#define pii pair <int, int>
const int N = 2e5 + 5;
vector <int> construct_permutation(ll k) {
string s;
ll oo = k;
while (oo > 0) {
s += char ((oo % 4) + 48);
oo /= 4;
}
reverse(s.begin(), s.end());
vector <double> ret;
bool ok = 0;
int mn = 0, mx = 0;
if (s[0] == '2') {
ret.pb (0);
}
else if (s[0] == '3') {
ret.pb (1);
ret.pb (0);
ok = 1;
mx = 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |