# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
712302 | kdowwods | Deda (COCI17_deda) | C++17 | 113 ms | 14164 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 INF 1000000100
using namespace std;
struct Node {
int l, r;
int minimum;
};
class ST {
public:
vector<Node> node;
ST(int n) {
node.resize(n * 4 + 4);
init(1, n, 1);
}
void init(int l, int r, int id) {
auto &nd = node[id];
nd.l = l;
nd.r = r;
if (l < r) {
int lid = leftId(id);
int rid = rightId(id);
int m = (l + r) / 2;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |