← All problemsSign in

Cookies n Kabir

Kabir has recently started baking rectangular Choco chip cookies. He thought his first batch of cookies would be the best straightaway but he learnt the hard way that only practice makes one perfect. Kabir burnt his cookies but he loves Choco chips too much to waste them. Each cookie is represented as rectangular matrix with ‘a’ lines containing ‘b’ characters with each character being either 0 o

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