← All problemsSign in

Alice and her garden

CodeChefRating 3712Open on judge ↗

Alice loves nature a lot. She owns her own large beautiful garden. Her garden is very neatly organized in a square shape of n × n cells. The cell at i-th row and j-th column is denoted by cell (i, j). At each cell, she has a small portion for growing a plant of flowers. Also, she knows very well the number of flowers that will grow on a plant at a particular cell. In particular, this information i

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