| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1299263 | alexrana2626 | Obstacles for a Llama (IOI25_obstacles) | C++20 | 0 ms | 0 KiB |
#include "obstacles.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> v;
void initialize(vector<int> T, vector<int> H)
{
for (int i = 0; i < H.size(); i++)
{
if (T[0] <= H[i]) v.push_back(i);
}
}
bool can_reach(int L, int R, int S, int D)
{
auto it = lowerbound(v.begin(), v.end(), S);
if (*it < D)
{
return false;
}
return true;
}
