| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1361203 | maya_s | Obstacles for a Llama (IOI25_obstacles) | C++20 | 56 ms | 7428 KiB |
#include "obstacles.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
int col[200200];
void initialize(vector<int> t, vector<int> h) {
ll n = t.size(), m = h.size();
ll temp = 0, cnt = 1;
for(ll i = 0; i < n; i++) temp = max(temp, t[i]);
for(ll j = 0; j < m; j++){
if(h[j] >= temp) cnt++;
else col[j] = cnt;
}
}
bool can_reach(int l, int r, int s, int d) {
return col[s] == col[d];
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
