Submission #535214

#TimeUsernameProblemLanguageResultExecution timeMemory
535214rainboy라멘 (JOI14_ramen)C11
100 / 100
1 ms284 KiB
#include "ramen.h" void Ramen(int n) { int i, x, y; x = -1, y = -1; for (i = 0; i < n; i += 2) { int u = i, v = i + 1 < n ? i + 1 : i, tmp; if (u != v && Compare(u, v) > 0) tmp = u, u = v, v = tmp; if (x == -1 || Compare(x, u) > 0) x = u; if (y == -1 || Compare(y, v) < 0) y = v; } Answer(x, y); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...