Submission #28684

#TimeUsernameProblemLanguageResultExecution timeMemory
28684이제 내가 두목이다~ (#68)LR Springboard (FXCUP2_springboard)C++11
0 / 1
0 ms1132 KiB
#include "springboard.h" void Reorder(int N) { // PutBall(3); // ��ȯ�� = -1 // PutBall(1); // ��ȯ�� = 1 PutBall(N/2+1); 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) { dir = PutBall(1); if(dir == -1) PutBall(N); } else if(dir == 1) { dir = PutBall(N); if(dir == -1) PutBall(1); } }
#Verdict Execution timeMemoryGrader output
Fetching results...