# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
59231 | tmwilliamlin168 | Unscrambling a Messy Bug (IOI16_messy) | C++14 | 3 ms | 512 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;
vector<int> ans;
void rec1(int l, int r) {
if(l==r)
return;
int m=(l+r)/2;
for(int i=0; i<l; ++i)
s[i]='1';
for(int i=l; i<=r; ++i)
s[i]='0';
for(int i=r+1; i<n; ++i)
s[i]='1';
for(int i=l; i<=m; ++i) {
s[i]='1';
add_element(s);
s[i]='0';
}
rec1(l, m);
rec1(m+1, r);
}
void rec2(int l, int r, vector<int> &v) {
if(l==r) {
ans[v[0]]=l;
# | 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... |