# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
619618 | Sergio_2357 | Ancient Books (IOI17_books) | C++17 | 2091 ms | 212 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 "books.h"
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
int n;
int l = 0;
int h = -1;
vi a;
int bst = INT_MAX;
bool correct()
{
bool r = true;
for (int i = 0; i < n; i++)
if (a[i] != i)
r = false;
return r;
}
void bk(int p, int d)
{
//cout << d << endl;
if (p == 0 && correct()) {
bst = min(bst, l);
return;
}
if (l >= bst || d >= 15)
# | 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... |