# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
586177 | Tien_Noob | Unscrambling a Messy Bug (IOI16_messy) | C++17 | 2 ms | 724 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.
//Make CSP great again
//Vengeance
#include <bits/stdc++.h>
#include <messy.h>
#define TASK "TESTCODE"
#define Log2(x) 31 - __builtin_clz(x)
using namespace std;
string s;
vector<int> res;
void gen(int l, int r)
{
if (l == r)
{
return ;
}
int mid = (l + r)/2;
fill(s.begin() + l, s.begin() + r + 1, '0');
for (int i = l; i <= mid; ++ i)
{
s[i] = '1';
//cerr << s << '\n';
add_element(s);
s[i] = '0';
}
fill(s.begin() + mid + 1, s.end(), '1');
fill(s.begin() + l, s.begin() + mid + 1, '0');
gen(l, mid);
fill(s.begin() + l, s.begin() + mid + 1, '1');
fill(s.begin() + mid + 1, s.end(), '0');
# | 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... |