Submission #262916

# Submission time Handle Problem Language Result Execution time Memory
262916 2020-08-13T11:05:13 Z dolphingarlic 라멘 (JOI14_ramen) C++14
30 / 100
1 ms 384 KB
#include "ramen.h"

void Ramen(int N) {
    int lo = 0, hi = 1;
    if (~Compare(lo, hi)) lo = 1, hi = 0;
    for (int i = 2; i < N; i++) {
        if (~Compare(lo, i)) lo = i;
        else if (~Compare(i, hi)) hi = i;
    }
    Answer(lo, hi);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 384 KB Output is correct
2 Runtime error 1 ms 256 KB Execution failed because the return code was nonzero
3 Halted 0 ms 0 KB -
# 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 256 KB Output is correct
5 Correct 1 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 -