# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
131483 | Mahdi_Jfri | Holiday (IOI14_holiday) | C++14 | 717 ms | 9868 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 "holiday.h"
using namespace std;
#define ll long long
#define pb push_back
const int maxn = 1e5 + 20;
ll dp[maxn];
int a[maxn] , d , root , lu[maxn] , ru[maxn] , l[maxn] , r[maxn];
vector<int> pnt , cmp;
void handle(int lux , int rux , int lx , int rx)
{
if(lx > rx)
return;
int k = (lx + rx) / 2;
l[k] = lx , r[k] = rx , lu[k] = lux , ru[k] = rux;
pnt.pb(k);
}
ll sum[maxn * 4];
int t[maxn * 4];
void add(int p , int val , int s = 0 , int e = cmp.size() , int v = 1)
{
if(e - s < 2)
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... |