| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1054010 | t12345 | 산악 구조대 (JOI13_mountain) | C++14 | 3 ms | 568 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
int measure(int r, int c, int x) {
int ret = Measure(r, c);
if(ret == x) Pinpoint(r, c);
return ret;
}
void Rescue(int R, int C, int RS, int CS, int x) {
for(int r=1; r<=R; r++) {
int h = measure(r, CS, x);
if(h < x) continue;
int lt = 0, rt = CS;
while(rt - lt > 1) {
int md = (lt + rt) / 2;
if(measure(r, md, x) < x) lt = md;
else rt = md;
}
lt = CS, rt = C;
while(rt - lt > 1) {
int md = (lt + rt) / 2;
if(measure(r, md, x) < x) rt = md;
else lt = md;
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
