# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
570127 | davi_bart | Unscrambling a Messy Bug (IOI16_messy) | C++17 | 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.
#pragma GCC optimize("O3")
#pragma GCC target("popcnt")
#include <bits/stdc++.h>
#include "messy.h"
using namespace std;
#define ll long long
#define fi first
#define se second
#define pb push_back
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
string zeri;
int N;
void add() {
string k = string(N, '1');
k[0] = '0';
add_element(k);
for (int i = 0; i < 7; i++) {
string x = zeri;
x[i] = '1';
add_element(x);
for (int j = 0; j < i; j++) x[j] = '1';
add_element(x);
}
for (int i = 7; i < N; i++) {
for (int j = 0; j < 7; j++) {
if (i & (1 << j)) {
string k = zeri;
k[0] = k[1] = k[2] = k[3] = k[4] = k[5] = k[6] = '1';
k[j] = '0';
Compilation message (stderr)
# | 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... |