# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85712 | chunghan | 매트 (KOI15_mat) | C++17 | 8 ms | 1488 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;
int N, W, rst;
class Line {
public:
int x, i;
bool r;
Line(int x, int i, bool r): x(x), i(i), r(r) {}
bool operator < (const Line &l) const {
return this->x < l.x;
}
};
class Mat {
public:
int P, L, R, H, K;
Mat(int P, int L, int R, int H, int K): P(P), L(L), R(R), H(H), K(K) {}
bool meet(const Mat &M) const {
if (this->R <= M.L || this->L >= M.R) return false;
if (this->P == M.P) return true;
return this->H + M.H > W;
}
bool operator < (const Mat &M) const {
return this->R != M.R ? this->R < M.R : this->L < M.L;
}
};
# | 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... |