Submission #262921

#TimeUsernameProblemLanguageResultExecution timeMemory
262921dolphingarlic라멘 (JOI14_ramen)C++14
50 / 100
1 ms384 KiB
#include "ramen.h" void Ramen(int N) { if (N == 1) { Answer(0, 0); return; } int lo = 0, hi = 1; if (Compare(lo, hi) == 1) lo = 1, hi = 0; for (int i = 2; i < N; i++) { if (Compare(lo, i) == 1) lo = i; else if (Compare(i, hi) == 1) hi = i; } Answer(lo, hi); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...