# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
57794 | choikiwon | 방벽 (JOI15_walls) | C++17 | 1201 ms | 125168 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;
typedef long long ll;
typedef pair<int, int> pii;
const int MN = 200010;
int N, M;
struct Query {
int l, r, id;
bool operator <(const Query &i) const {
return r - l < i.r - i.l;
}
};
Query P[MN];
int Q[MN];
vector<int> tmp;
bool bad(int a, int b, int c) {
return (a < b && b < c) || (a > b && b > c);
}
struct Info {
int d, t1, t2;
bool operator <(const Info &i) const {
if(d != i.d) return d < i.d;
if(t1 != i.t1) return t1 < i.t1;
if(t2 != i.t2) return t2 < i.t2;
return false;
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... |