# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
958984 | typ_ik | Pinball (JOI14_pinball) | C++17 | 499 ms | 42704 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>
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define watch(x) cout << (#x) << " : " << x << '\n'
#define boost ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
const int N = 300100;
int l[N], r[N], c[N], d[N];
ll pref[N], suf[N];
const ll INF = 1e16 + 128;
ll mn[2][4 * N];
ll get_min(bool where, int l, int r, int v, int tl, int tr) {
if (tl > r || tr < l)
return INF;
if (l <= tl && tr <= r)
return mn[where][v];
int tm = (tl + tr) >> 1;
return min(get_min(where, l, r, v << 1, tl, tm),
get_min(where, l, r, v << 1 | 1, tm + 1, tr));
}
void update(bool where, int pos, ll val, int v, int tl, int tr) {
if (tl > pos || tr < pos)
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... |