← All problemsSign in

Bruno the Lazy Dog

Chef has a dog name Bruno. He's very happy and well-behaved dog but he's very lazy.So one day chef decided to put him on a action test for 60 days. On day 1 the chef keeps a quota of 1 biscuits, each day the quota will be doubled. If Bruno is active on ith day he will be given all the biscuits in the quota that day, otherwise, he is given zero biscuits. Find the total number of days Bruno was acti

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