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) {
if (N == 1) {
Answer(0, 0);
return;
}
int lo = 0, hi = 1;
if (Compare(lo, hi) == 1) lo = 1, hi = 0;
for (int i = 2; i < N; i++) {
if (Compare(lo, i) == 1) lo = i;
else if (Compare(i, hi) == 1) hi = i;
}
Answer(lo, hi);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |