| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 12947 | gs14004 | 산악 구조대 (JOI13_mountain) | C++98 | 21 ms | 944 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
void Rescue(int R, int C, int RS, int CS, int X){
int px = 1, py = CS;
while (px <= RS && py) {
int t = Measure(px,py);
if(t < X){
px++;
}
else if(t > X){
py--;
}
else{
Pinpoint(px,py);
return;
}
}
px = R, py = CS;
while (px >= RS && py) {
int t = Measure(px,py);
if(t < X){
px--;
}
else if(t > X){
py--;
}
else{
Pinpoint(px,py);
return;
}
}
px = 1, py = CS;
while (px <= RS && py <= C) {
int t = Measure(px,py);
if(t < X){
px++;
}
else if(t > X){
py++;
}
else{
Pinpoint(px,py);
return;
}
}
px = R, py = CS;
while (px >= RS && py <= C) {
int t = Measure(px,py);
if(t < X){
px--;
}
else if(t > X){
py++;
}
else{
Pinpoint(px,py);
return;
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
