| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 993249 | vjudge1 | Robots (IOI13_robots) | C++17 | 80 ms | 4472 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "robots.h"
int putaway(int A, int B, int T, int X[], int Y[], int w[], int s[]) {
if(A == 2){
int x = X[0], y = X[1];
if(x > w[0] && y > w[1]) return 1;
if(x > w[1] && y > w[0]) return 1;
if(x > w[1] && x > w[0]) return 2;
if(y > w[1] && y > w[0]) return 2;
return -1;
}
if(A == 1){
int x = X[0], y = Y[0];
if(x > w[0] && y > s[1]) return 1;
if(x > w[1] && y > s[0]) return 1;
if(x > w[1] && x > w[0]) return 2;
if(y > s[1] && y > s[0]) return 2;
return -1;
}
if(B == 2){
int x = Y[0], y = Y[1];
if(x > s[0] && y > s[1]) return 1;
if(x > s[1] && y > s[0]) return 1;
if(x > s[1] && x > s[0]) return 2;
if(y > s[1] && y > s[0]) return 2;
return -1;
}
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
