| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1316381 | ezzzay | 장애물 (IOI25_obstacles) | C++20 | 0 ms | 0 KiB |
#include "obstacles.h"
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
vector<int>HH,TT;
void initialize(std::vector<int> T, std::vector<int> H) {
TT.clear();
HH.clear();
for(auto a:T)TT.pb(a);
for(auto b:H)HH.pb(b);
}
bool can_reach(int L, int R, int S, int D) {
if(S>D)swap(S,D);
for(int i=S;i<=D;i++){
if(T[0]<=H[i])return false;
}
return true;
}
