# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18022 | gs13068 | 매트 (KOI15_mat) | C++98 | 301 ms | 88248 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<cstdio>
#include<vector>
#include<algorithm>
struct mat
{
int w,l,r,h,c;
} a[3333];
bool operator <(const mat &a,const mat &b)
{
if(a.l!=b.l)return a.l<b.l;
if(a.r!=b.r)return a.r<b.r;
if(a.w!=b.w)return a.w<b.w;
if(a.h!=b.h)return a.h<b.h;
return a.c<b.c;
}
int t[6666];
int d[3333][6666];
std::vector<int> b[6666];
int m;
int crs(const mat &a,const mat &b)
{
return a.l<b.r&&b.l<a.r&&(a.w==b.w||a.h+b.h>m);
}
int main()
# | 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... |