# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
56552 | ruhanhabib39 | Pinball (JOI14_pinball) | C++17 | 994 ms | 78256 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;
const int MAXM = 1e5;
const int MX = 4 * MAXM + 10;
const long long INF = 1e18;
struct dat {
long long a, b, c, d;
};
ostream& operator<<(ostream& os, dat d) {
return os << "{[" << d.a << ", " << d.b << "] " << d.c << " " << d.d << "}";
}
long long N, M;
dat dt[MAXM + 10];
long long mn[3 * MX + 10];
long long pref[MAXM + 10], suff[MAXM + 10];
void compress() {
set<int> st;
for(int i = 1; i <= M; i++) {
st.insert(dt[i].a);
st.insert(dt[i].b);
st.insert(dt[i].c);
}
map<int,int> mp;
int ii = 0;
for(int x : st) mp[x] = ++ii;
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... |