# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1121555 | vjudge1 | Unscrambling a Messy Bug (IOI16_messy) | C++17 | 2 ms | 768 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 "messy.h"
using namespace std;
int n;
vector<int> ans;
void create(int l, int r)
{
if (l + 1 == r) return;
string s(n, '1');
for (int i = l; i < r; i++) s[i] = '0';
for (int i = l; i < ((l + r) >> 1); i++)
{
s[i] = '1';
add_element(s);
s[i] = '0';
}
create(l, (l + r) >> 1);
create((l + r) >> 1, r);
}
void getans(int l, int r, vector<int> v)
{
if (l + 1 == r)
{
ans[v[0]] = l;
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |