Capt sparrow
CodeChefOpen on judge ↗
Problem description Since sea trading has slowed down, pirates of the caribbean have turned into crackers.One day, Jack and Barbossa bet a PS4 and a Xbox on creating the fastest program to identify the most significant bit of a binary number obtained from a decimal input. Jack forgot the basics and now needs your help. If you know how to convert decimal to binary, then skip to input. Tips: An
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start