Submission #28716

# Submission time Handle Problem Language Result Execution time Memory
28716 2017-07-16T08:59:58 Z 일단아무거나적어놓은팀이름(#1191, solarmagic, junodeveloper) LR Springboard (FXCUP2_springboard) C++14
0 / 1
0 ms 1128 KB
#include "springboard.h"
int n;
void Reorder(int N) {
    n = N;
    int lo = 1, hi = N;
    while(lo < hi) {
        int mid = (lo + hi) >> 1;
        int q = PutBall(mid);
        if(q == 1) {
            PutBall(N);
            hi = mid;
        } else {
            lo = mid;
        }
    }
    PutBall(N);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1128 KB Output isn't correct
2 Halted 0 ms 0 KB -