# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
546909 | Ooops_sorry | Arranging Tickets (JOI17_arranging_tickets) | C++14 | 5455 ms | 39684 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 pb push_back
#define ld double
#define ll __int128
mt19937 rnd(51);
const int INF = 1e14 + 100;
struct st {
vector<int> t, add, arr;
void build(int v, int l, int r) {
if (l == r) {
t[v] = arr[l];
return;
}
int m = (l + r) / 2;
build(2 * v, l, m), build(2 * v + 1, m + 1, r);
}
st(vector<int> a) {
int n = a.size();
arr = a;
t.resize(4 * n);
add.resize(4 * n);
build(1, 0, n - 1);
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |