# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1040474 | prabhu_2020 | Arranging Tickets (JOI17_arranging_tickets) | C++14 | 0 ms | 344 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/* 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... |