# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85737 | chunghan | 매트 (KOI15_mat) | C++17 | 7 ms | 1568 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 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 (R <= M.L || L >= M.R) return false;
if (P == M.P) return true;
return H + M.H > W;
}
bool operator < (const Mat &M) const {
return R != M.R ? R < M.R : L < M.L;
}
};
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... |