Submission #486358

# Submission time Handle Problem Language Result Execution time Memory
486358 2021-11-11T11:44:04 Z leinad2 라멘 (JOI14_ramen) C++17
50 / 100
1 ms 204 KB
#include "ramen.h"

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