# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
796323 | TheSahib | Unscrambling a Messy Bug (IOI16_messy) | C++14 | 2 ms | 468 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 "messy.h"
#include <bits/stdc++.h>
using namespace std;
string s;
int N;
void f1(int l, int r){
int mid = (l + r) / 2;
fill(s.begin(), s.end(), '1');
for (int i = l; i <= r; i++)
{
s[i] = '0';
}
for(int i = l; i <= mid; ++i){
s[i] = '1';
add_element(s);
s[i] = '0';
}
if(l == r) return;
f1(mid + 1, r);
f1(l, mid);
}
vector<int> ans;
# | 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... |