#include "obstacles.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> He;
int t;
int n, m;
void initialize(std::vector<int> T, std::vector<int> H) {
t = T[0];
He = H;
n = T.size();
m = H.size();
}
bool can_reach(int L, int R, int S, int D) { //
if (S > D) swap(S, D);
while (S < D) {
S++;
if (t <= He[S]) return false;
}
return true;
}
| # | 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... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |