Laddus in Triangle
CodeChefOpen on judge ↗
Chef has a laddu factory and it produces N laddus everyday. As it is triangle day in Chefland, Chef wants to join in the celebrations and pack all the laddus in a triangle box, to distribute them to everyone in the city. In the box the laddus would be arranged as follows: - There is 1 laddu in the 1st row - There are 2 laddus in the 2nd row - There are 3 laddus in the 3rd row - and so on...
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