답안 #486358

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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);
}
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 Grader output
1 Runtime error 0 ms 204 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -