# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
49532 | MatheusLealV | Worst Reporter 3 (JOI18_worst_reporter3) | C++17 | 1037 ms | 262144 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>
#define N 500050
using namespace std;
int n, q, D[N], F[N], g[N];
int upper_bound(int t, int T)
{
int ini = 0, fim = n, mid, best = n + 1;
while(fim >= ini)
{
mid = (ini + fim)/2;
if(g[mid] * (t/g[mid]) - mid <= T)
{
best = mid;
fim = mid - 1;
}
else ini = mid + 1;
}
return best;
}
int lower_bound(int t, int T)
{
int ini = 0, fim = n, mid, best = n + 1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |