# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
23992 | gs14004 | Unscrambling a Messy Bug (IOI16_messy) | C++11 | 3 ms | 540 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;
int n, occ[128];
void solve(int s, int e){
if(s == e) return;
string str;
for(int j=0; j<n; j++){
str.push_back('0');
}
for(int j=s; j<=e; j++){
str[j] = '1';
}
int m = (s+e)/2;
for(int j=m+1; j<=e; j++){
str[j] = '0';
add_element(str);
str[j] = '1';
}
solve(s, m);
solve(m+1, e);
}
void solve2(int s, int e, vector<int> c){
if(s == e){
occ[c[0]] = s;
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... |