| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1068526 | ican0534 | 산악 구조대 (JOI13_mountain) | C++14 | 6 ms | 1116 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
using namespace std;
void Rescue(int R, int C, int RS, int CS, int X) {
for(int r = 1; r <= R; r++) {
int left = 1;
int right = C;
while(left <= right) {
int mid = (left + right) / 2;
int ht = Measure(r, mid);
if(ht == X) {
Pinpoint(r, mid);
return;
} else if(ht < X) {
left = mid + 1; // 고도가 X보다 낮으면 오른쪽으로 이동
} else {
right = mid - 1; // 고도가 X보다 높으면 왼쪽으로 이동
}
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
