# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
588759 | jack715 | Rabbit Carrot (LMIO19_triusis) | C++14 | 177 ms | 18452 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 pb push_back
#define pp pop_back
#define mp make_pair
#define bb back
#define ff first
#define ss second
#define int long long
using namespace std;
int n, m;
vector<int> nums, segtree, srt;
void update(int indx, int st, int end, int v, int val) {
if (st == end) {
segtree[indx] = val;
return;
}
int mid = (st + end) / 2;
if (v <= mid)
update(indx*2, st, mid, v, val);
else
update(indx*2+1, mid+1, end, v, val);
segtree[indx] = min(segtree[indx*2], segtree[indx*2+1]);
}
int query(int indx, int st, int end, int v) {
// cout << indx << ' ' << st << ' ' << end << '\n';
# | 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... |