# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
488074 | ala2 | Arranging Shoes (IOI19_shoes) | C++14 | 197 ms | 31700 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 "shoes.h"
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int b[1000100];
int a[1000100];
int seg[4*1001000];
void sett(int s,int e,int p,int l,int r)
{
// cout<<" ? "<<endl;
if(l>e||r<s)
return ;
if(s>=l&&e<=r)
{
seg[p]++;
return ;
}
int mid=(s+e)/2;
sett(s,mid,p*2,l,r);
sett(mid+1,e,p*2+1,l,r);
return ;
}
int gett(int s,int e,int p,int i)
{
//cout<<" ! "<<endl;
if(i<s||i>e)
return 0;
if(s==e)
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |