# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
283816 | tinjyu | Holiday (IOI14_holiday) | C++14 | 86 ms | 65536 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 "holiday.h"
#include <iostream>
using namespace std;
long long int temp,st,d,f1[100005],f2[100005],f3[100005],f4[100005],loc,val,city[100005],count,v[100005],l[3000005],r[3000005],cnt[3000005],sum[3000005],id[100005],local[100005];
void qs(int s,int e)
{
long long int l=s,r=e,mid=(city[s]+city[e])/2;
while(l<=r)
{
while(city[l]>mid)l++;
while(city[r]<mid)r--;
if(l<=r)
{
swap(city[l],city[r]);
swap(id[l],id[r]);
l++;
r--;
}
}
if(r>s)qs(s,r);
if(e>l)qs(l,e);
return ;
}
void clone(int x,int y)
{
cnt[x]=cnt[y];
sum[x]=sum[y];
l[x]=l[y];
r[x]=r[y];
return ;
# | 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... |