Irrigating Farms
CodeChefOpen on judge ↗
In the district of Jalshunyapur, the earth board has put restrictions on the usage of water in any farm to C litres per hour. Jalshunyapur has many farmers each having a farm of size K meter × K meter, divided into K2 square plots each having a side of 1 meter. The plots are numbered from 1 to K2 from left-to-right, top-to-bottom (see picture below). To irrigate the plots, the farmer has put S
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