Binary Robot
CodeChefOpen on judge ↗
Chef just bought a robot that is able to solve advance computations easily. The robot speaks its native language, BINLANG i.e., the output only consists of numbers formed using ‘0’s and ‘1’s without leading zeroes. Chef intends to play a mathematical game with the robot as described below: Chef will input a string, S, that depicts a positive decimal integer. The robot shall output N-BINLANG num
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