# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
390236 | rainboy | Robots (IOI13_robots) | C11 | 153 ms | 15248 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 n, int m, int t, int xx[], int yy[], int ww[], int ss[]) {
if (t == 2 && n + m == 2) {
static int can[2][2];
int h, i;
for (h = 0; h < 2; h++)
for (i = 0; i < n + m; i++)
if ((i < n ? ww[h] < xx[i] : ss[i] < yy[i - n]))
can[h][i] = 1;
if (!can[0][0] && !can[0][1] || !can[1][0] && !can[1][1])
return -1;
if (can[0][0] && can[1][1] || can[0][1] && can[1][0])
return 1;
return 2;
} else
return 42;
}
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... |