← All problemsSign in

Cake Shop

Problem description. A chef at a cake shop only caters to hackers and receives his order in a special format.There are 3 columns - item code, quantity and total price. But, in the quantity column of the order, instead of the real quantity a binary number is written. The real quantity can be obtained by multiplying the decimal equivalent of the binary by 2^y (where y was the secret known only to t

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start