# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
82892 | leejseo | 매트 (KOI15_mat) | C++11 | 185 ms | 64160 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, 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;
return P == MT.P ? true : ((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... |