# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28516 | 점수판에 아이디와 팀명이 같이 표기되니, 신중하게 적어주세요. (#68) | LR Springboard (FXCUP2_springboard) | C++14 | 0 ms | 1128 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) {
int a;
bool pdir = dir;
if (dir) a = n / 2;
else a = (N+1) - (n / 2);
if (PutBall(a) == 1) dir = false;
else dir = true;
if (dir != pdir) n = (n / 2) - 1;
else n = n - (n / 2) - 1;
}
if (dir) PutBall(1);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |