# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
37770 | Talant | 금 캐기 (IZhO14_divide) | C++14 | 433 ms | 56704 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fr first
#define sc second
#define OK puts("OK");
#define pb push_back
#define mk make_pair
using namespace std;
typedef long long ll;
const ll inf = (ll)1e18 + 7;
const ll N = (ll)1e6 + 7;
ll n;
ll x[N],g[N],d[N];
ll p[N],res[N],mx,a[N],t[N];
void build (ll v = 1,ll tl = 1,ll tr = n) {
if (tl == tr)
t[v] = a[tl];
else {
ll tm = (tl + tr) >> 1;
build (v * 2,tl,tm);
build (v * 2 + 1,tm + 1,tr);
t[v] = max(t[v * 2],t[v * 2 + 1]);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |