← All problemsSign in

Watermelon Farmer

CodeChefRating 2799Open on judge ↗

Greeny, a watermelon farmer, has land of dimensions m units by n units. The farm can be divided into m*n cells, each of dimension 1 unit by 1 unit. The cell at row i and column j is denoted by (i, j). Rows are numbered from 1 to m and columns are numbered from 1 to n. Watermelon plants here grow in a strange way. Each plant's lifespan is exactly 1 week. By the middle of the week, a plant bears ex

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