# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20600 | model_code | Unscrambling a Messy Bug (IOI16_messy) | C++11 | 5 ms | 560 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.
// name = messy_cpp_ok.cpp, type = cpp.g++11
#include "messy.h"
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
int nn;
string address;
void helper(int length, int w) {
fill(address.begin(), address.end(), '1');
for (int i = w; i < nn; i += (1 << length)) {
address[i] = '0';
}
int j = w;
for (int i = 0; i < (nn / (1 << length)); i++) {
address[j] = '1';
if (i % 2 == 1) {
add_element(address);
}
address[j] = '0';
j += 1 << length;
# | 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... |