# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
245172 | urd05 | 매트 (KOI15_mat) | C++14 | 33 ms | 512 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;
struct Mat {
int p,l,r,h,k;
};
Mat arr[3000];
bool meet[10][10];
int n,w;
bool isMeet(Mat a,Mat b) {
if (a.p==b.p) {
if (a.r<=b.l||b.r<=a.l) {
return false;
}
return true;
}
else {
if (a.h+b.h<=w) {
return false;
}
if (a.r<=b.l||b.r<=a.l) {
return false;
}
return true;
}
}
long long dp[3000]; //dp[i]:start with i
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... |