Submission #28424

# Submission time Handle Problem Language Result Execution time Memory
28424 2017-07-16T05:40:04 Z 쥬니님일어나세요 버스운전해주시기로했잖아요(#1179, kjp4155, pjh0123, dnsdhrj) LR Springboard (FXCUP2_springboard) C++11
0 / 1
0 ms 1128 KB
#include "springboard.h"

void Reorder(int N) {
    int n = N;

    PutBall(n/2);
    int t = PutBall(n/2);
    int x = n/2;
    for(int i=0;i<13;i++){
        x/=2;
        if (x == 0) {
            int q;
            q = PutBall(t == 1 ? 1 : n);
            if (q == 1)PutBall(1);
            break;
        }
        if (t == 1) {
            t = PutBall(x);
        }
        else {
            t = PutBall(n-x+1);
        }
    }


}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1128 KB Output isn't correct
2 Halted 0 ms 0 KB -