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"
#include <algorithm>
int ord[600];
void Ramen(int N) {
std::srand(13371337);
for (int i = 0; i < N; i++) ord[i] = i;
std::random_shuffle(ord, ord + N);
int lo = ord[0], hi = ord[0];
for (int i = 1; i < N; i++) {
if (~Compare(lo, ord[i])) lo = ord[i];
else if (~Compare(ord[i], hi)) hi = ord[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... |