# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
57294 | leejseo | 매트 (KOI15_mat) | C++98 | 315 ms | 72444 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 = 0;
typedef 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{
if (x != other.x) return x < other.x;
return ((int) r) * i > ((int) other.r) * other.i;
}
} cor;
typedef 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{
if (R != MT.R) return R < MT.R;
return L > MT.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... |