# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
985962 | alextodoran | Port Facility (JOI17_port_facility) | C++17 | 785 ms | 604 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.
/**
_ _ __ _ _ _ _ _ _
|a ||t ||o d | |o |
| __ _| | _ | __| _ |
| __ |/_ | __ /__\ / _\|
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N_MAX = 20;
int N;
int L[N_MAX + 2], R[N_MAX + 2];
bool color[N_MAX + 2];
bool check () {
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= N; j++) {
if (color[i] == color[j] && L[i] < L[j] && L[j] < R[i] && R[i] < R[j]) {
return false;
}
}
}
return true;
# | 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... |