Submission #28539

#TimeUsernameProblemLanguageResultExecution timeMemory
28539Sorry AcornCkiGuiziTeam (#68)LR Springboard (FXCUP2_springboard)C++14
0 / 1
0 ms1128 KiB
#include "springboard.h" void Reorder(int N) { int L = 1; int R = N; while (L <= R) { int M = L + R >> 1; if (PutBall(M) < 0) L = M + 1; else R = M - 1; } while (PutBall(1) != 1); }

Compilation message (stderr)

springboard.cpp: In function 'void Reorder(int)':
springboard.cpp:7:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int M = L + R >> 1;
             ^
#Verdict Execution timeMemoryGrader output
Fetching results...