# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
553570 | andrei_boaca | Snowball (JOI21_ho_t2) | C++14 | 1639 ms | 13744 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>
using namespace std;
typedef long long ll;
const ll INF=1e9;
ll n,q,x[200005],w[200005],smax[200005],smin[200005],sol[200005];
ll getfst(ll need)
{
if(need>=0)
{
ll st=1;
ll dr=q;
ll poz=INF;
while(st<=dr)
{
ll mij=(st+dr)/2;
if(smax[mij]>=need)
{
poz=mij;
dr=mij-1;
}
else
st=mij+1;
}
return poz;
}
else
{
ll st=1;
ll dr=q;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |