# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
444334 | parsabahrami | The short shank; Redemption (BOI21_prison) | C++17 | 520 ms | 6216 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/* I do it for the glory */
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<double, int> pii;
#define SZ(x) (int) x.size()
#define F first
#define S second
#define lc id << 1
#define rc lc | 1
const int N = 7.5e4 + 10, MOD = 1e9 + 7; const double eps = 1e-14;
int R[N], t[N], n, T, D; pii dp[N], seg[N << 2];
void bld(int id = 1, int l = 1, int r = n + 1) {
seg[id] = {MOD, 0};
if (r - l < 2) return;
int md = (l + r) >> 1;
bld(lc, l, md), bld(rc, md, r);
}
void upd(int p, double x, int y, int id = 1, int l = 1, int r = n + 1) {
if (r - l < 2) { seg[id] = min(seg[id], {x, y}); return; }
int md = (l + r) >> 1;
p < md ? upd(p, x, y, lc, l, md) : upd(p, x, y, rc, md, r);
seg[id] = min(seg[lc], seg[rc]);
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |