# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28691 | 이제 내가 두목이다~ (#68) | LR Springboard (FXCUP2_springboard) | C++11 | 0 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)
{
// PutBall(3); // ��ȯ�� = -1
// PutBall(1); // ��ȯ�� = 1
// PutBall(N/2+1); // 2
int dir = PutBall(N/2+1);
for(int i=12; i>=0; i--) // 13
{
if((1<<i) >= N) continue;
if(dir == -1) dir = PutBall((1<<i)+1);
else if(dir == 1) dir = PutBall(N-(1<<i)+1);
}
if(dir == -1) // 2
{
dir = PutBall(1);
if(dir == -1) PutBall(N);
}
else if(dir == 1)
{
dir = PutBall(N);
if(dir == -1) PutBall(1);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |