# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
262928 |
2020-08-13T11:11:44 Z |
dolphingarlic |
라멘 (JOI14_ramen) |
C++14 |
|
1 ms |
384 KB |
#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 |
1 |
Correct |
1 ms |
256 KB |
Output is correct |
2 |
Correct |
0 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
0 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
384 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
256 KB |
Execution failed because the return code was nonzero |
2 |
Halted |
0 ms |
0 KB |
- |