# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
85704 | chunghan | 매트 (KOI15_mat) | C++17 | 15 ms | 2844 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |