# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1040474 | prabhu_2020 | Arranging Tickets (JOI17_arranging_tickets) | C++14 | 0 ms | 344 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.
/* WHY NOT ? */
// #pragma GCC target("popcnt")
#include <bits/stdc++.h>
using namespace std;
using namespace std::chrono;
#define endl '\n'
#define mn first
#define mnc second
#define int long long
int MAX = 1e5;
int MAXN = 2 * MAX + 2;
vector<pair<int,int>> tree;
vector<int> lazy;
// pair<int,int> tree[4 * MAXN];
// int lazy[4 * MAXN];
pair<long long, long long> merge(pair<long long, long long> a,
pair<long long, long long> b) {
if (a.first < b.first) { return a; }
if (a.first > b.first) { return b; }
return {a.first, a.second + b.second};
}
void push(int node,int ss,int se){
if(lazy[node] != 0){
tree[node].mn += lazy[node];
if(ss != se){
# | 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... |