# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28657 | 일단아무거나적어놓은팀이름 (#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"
int rightmost = -1;
void solve(int l, int r) {
int mid = (l + r) >> 1;
int q = PutBall(mid);
if(q == 1) solve(l, mid - 1);
else {
if(rightmost < mid)
rightmost = mid;
solve(mid + 1, r);
}
}
void Reorder(int N) {
solve(1, N);
if(rightmost != -1) PutBall(rightmost);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |