← All problemsSign in

Akka Cheese

Bob loves cakes! He visits the Binary Bakery to buy some of his favourite cheesecakes. The owner of the bakery, Alice, is a clever woman. She does not want Bob to finish all her cheesecakes as both love the same blueberry cheesecake. Hence, she plays a game. Bob is given N numbers and has to select K of these numbers. For each number that Winit chooses, he will get as many cheesecakes as the nu

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