# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
82894 | leejseo | 매트 (KOI15_mat) | C++11 | 185 ms | 63740 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int N, W, ans;
struct cor{
int x, i;
bool r;
cor(int i_, int x_, bool r_){
i = i_, x = x_;
r = r_;
}
bool operator < (const cor &other) const{
return x < other.x;
}
};
struct MAT{
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 &MT) const{
if (R <= MT.L || L >= MT.R) return false;
if (P == MT.P) return true;
return ((MT.H) + H) > W;
}
bool operator < (const MAT &MT) const{
return R != MT.R ? R < MT.R : L < MT.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... |