# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
861440 | Rareshika | Deda (COCI17_deda) | C++14 | 82 ms | 6844 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>
using namespace std;
const int INF = 1e9 + 7;
int N, Q;
struct SegTree
{
int next_power_of_two(int n)
{
int p = 1;
while (p <= n)
p <<= 1;
return p;
}
int offset;
vector <int> data;
SegTree(int n)
{
offset = next_power_of_two(n);
data.resize(2 * offset);
for (int i = 0 ; i < data.size() ; ++ i)
data[i] = INF;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |