# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1036505 | 0npata | Two Currencies (JOI23_currencies) | C++17 | 1201 ms | 1048576 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;
#define int long long
#define vec vector
const int N = 1<<17;
const int CMX = (int)1<<31;
struct Node {
int cnt = 0;
int sum = 0;
Node* left = nullptr;
Node* right = nullptr;
Node* get_right() {
if(right == nullptr) {
right = new Node{};
}
return right;
}
Node* get_left() {
if(left == nullptr) {
left = new Node{};
}
return left;
}
void insert(int val, int l = 0, int r = CMX) {
Compilation message (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... |