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 "ramen.h"
void Ramen(int n) {
int i, x, y;
x = -1, y = -1;
for (i = 0; i < n; i += 2) {
int u = i, v = i + 1 < n ? i + 1 : i, tmp;
if (u != v && Compare(u, v) > 0)
tmp = u, u = v, v = tmp;
if (x == -1 || Compare(x, u) > 0)
x = u;
if (y == -1 || Compare(y, v) < 0)
y = v;
}
Answer(x, y);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |