CSA Garden Snakes
CodeChefOpen on judge ↗
CSA department has a very beautiful and lush green garden. So snakes like it very much. There are N snakes which are quite powerful and dangerous. They usually used to visit the garden. Today they all are in garden. You can think of garden as W*H block grid.(W- width, H- Height, top-left corner:(0,0) bottom-right corner:(W-1,H-1)) So each snake is at some block in the garden. Other than these N
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