# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
100723 | Bodo171 | The Big Prize (IOI17_prize) | C++14 | 0 ms | 0 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.
pair<int,int> vezi_al_catelea(int x)
{
int pp=0;
while(x<n&&cate(x)<mx)
x++;
if(x==n) pp=mx;
else pp=cate_st(x);
x--;
pair<int,int> ret;
ret.second=pp;
while(x>=0&&cate(x)<mx)
{
spec[pp]=x;
pp--;x--;
}
ret.first=pp;
return ret;
}