# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28533 | 점수판에 아이디와 팀명이 같이 표기되니, 신중하게 적어주세요. (#68) | LR Springboard (FXCUP2_springboard) | C++14 | 3 ms | 1132 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "springboard.h"
void Reorder(int N) {
bool dir = false;
int n = N;
while (n>0) {
int a;
bool pdir = dir;
if (dir) a = (n+1) / 2;
else a = (N+1) - ((n+1) / 2);
if (PutBall(a) == 1) dir = false;
else dir = true;
if (dir != pdir) n = ((n+1) / 2) - 1;
else n = n - ((n+1) / 2);
}
if (dir) PutBall(1);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |