← All problemsSign in

Maximum Laddus

CodeChef Chapter is organizing a coding contest for students. As a prize fund, you have n CodeChef Laddus (Laddu Accrual System). You would like to use these Laddus for top k places in a contest with a natural restriction that a higher place gets a larger number of Laddus. To make as many students happy as possible, Can you find the largest value of k for which it is possible? The goal of this pr

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