# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
314648 | apostoldaniel854 | Rectangles (IOI19_rect) | C++14 | 5022 ms | 175352 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 <bits/stdc++.h>
using namespace std;
#include "rect.h"
//#define HOME
using ll = long long;
#define pb push_back
#define dbg(x) cerr << #x << " " << x<< "\n"
const int N = 2500;
int prvX[N][N], prvY[N][N], nxtX[N][N], nxtY[N][N];
inline bool check (int x1, int y1, int x2, int y2, int n, int m) {
if (x1 > 0 && y1 > 0 && x2 < n - 1 && y2 < m - 1) {
for (int i = x1; i <= x2; i++) {
for (int j = y1; j <= y2; j++) {
if (prvX[i][j] < y1 - 1) return false;
if (prvY[i][j] < x1 - 1) return false;
if (nxtX[i][j] > y2 + 1) return false;
if (nxtY[i][j] > x2 + 1) return false;
}
}
return true;
}
return false;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |