# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
993249 | vjudge1 | Robots (IOI13_robots) | C++17 | 80 ms | 4472 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}
}
Compilation message (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... |