| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1343105 | aritro_ | 장애물 (IOI25_obstacles) | C++20 | 74 ms | 7444 KiB |
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl '\n'
#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
const int maxN=2e5 + 15;
vector<int> segment(maxN);
int T;
void initialize(vector<int>t,vector<int>H){
int n=H.size();
T=t[0];
int cur=0;
for(int j=0;j<n;j++){
if(T>H[j]){
if(j==0||!(T>H[j-1])) cur++;
segment[j]=cur;
}else segment[j]=-1;
}
}
bool can_reach(int L,int R,int S,int D){
return (segment[S]==segment[D])&&(segment[S]!=-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... | ||||
| # | 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... | ||||
