# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
526530 | Bill_00 | Bigger segments (IZhO19_segments) | C++14 | 192 ms | 25224 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define MOD 1000000007
#define ff first
#define ss second
#define N 500005
typedef long long ll;
const ll mx = 1e9 + 100005;
using namespace std;
ll a[N], M[N], H[N], sum[N], mn[4 * N];
ll solve(ll id, ll l, ll r, ll val){
ll m = l + r >> 1;
if(l == r) return l;
if(mn[id * 2 + 1] <= val) return solve(id * 2 + 1, m + 1, r, val);
else return solve(id * 2, l, m, val);
}
void update(ll id, ll l, ll r, ll pos, ll val){
if(l == r){
mn[id] = val;
return;
}
ll m = l + r >> 1;
if(m >= pos) update(id * 2, l, m, pos, val);
else update(id * 2 + 1, m + 1, r, pos, val);
mn[id] = min(mn[id * 2], mn[id * 2 + 1]);
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
컴파일 시 표준 에러 (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... |