Submission #236046

# Submission time Handle Problem Language Result Execution time Memory
236046 2020-05-31T02:52:54 Z hhs2u 라멘 (JOI14_ramen) C++17
50 / 100
5 ms 384 KB
#include "ramen.h"

void Ramen(int N) {
    int a=0,b=0,c;
    for(int i=1;i<N;i++)
    {
        c=i;
        if(Compare(c,a)==1) a=c;
        if(Compare(b,c)==1) b=c;
    }
    Answer(b,a);
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 256 KB Output is correct
2 Correct 4 ms 256 KB Output is correct
3 Correct 4 ms 256 KB Output is correct
4 Correct 4 ms 256 KB Output is correct
5 Correct 4 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 256 KB Output is correct
2 Correct 4 ms 384 KB Output is correct
3 Correct 4 ms 256 KB Output is correct
4 Correct 4 ms 256 KB Output is correct
5 Correct 4 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 256 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -