Ashritha and her Garden
CodeChefOpen on judge ↗
Problem description. Ashritha loves to plant roses with her mom Anu in her ever growing and ever blooming garden. The garden is rectangular shaped and it has in total P * Q square units. Only a few of these square units are viable for planting. Growing roses at a given co-ordinate square would incur some cost. Let the location of this square in a 2-dimensional plane be denoted as (X,Y). Ashrit
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