# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
236883 | DanShaders | Deda (COCI17_deda) | C++17 | 494 ms | 6924 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>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define all(x) begin(x), end(x)
#define x first
#define y second
typedef long long ll;
typedef long double ld;
template<typename T>
using ordered_set_ = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template<typename T>
using normal_queue = priority_queue<T, vector<T>, greater<T>>;
const int MAX_TREE = 1 << 19, MAX_N = 1 << 18, INF = 0x3f3f3f3f;
int tre[MAX_TREE];
void build() {
fill(tre, tre + MAX_TREE, +INF);
}
void set_(int i, int x) {
i += MAX_N;
tre[i] = x;
i /= 2;
while (i) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |