Too Many Sprinklers
CodeChefOpen on judge ↗
The annual Treasure Hunt of BITS Pilani is underway! The final stage of the hunt involves crossing a huge grass field filled with sprinklers (which sprinkle water on nearby grass). More formally, the problem scenario is as follows: - The grass field can be represented as a rectangle on the 2D cartesian plane, with bottom left corner at $(0, 0)$ and top right corner at $(L, W)$. - The bottom and t
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