Sanitization is must
CodeChefOpen on judge ↗
VIIT college is an list of size n. There are sanitation sprayers in some places of the list. The i-th element of the list is 1 if there is a sprayers in the position i, otherwise the i-th element of the list is 0. Each sprayers has a value r the sprayers at the position p can sanitize up all the places from and to in range [p−r+1;p+r−1]. VIIT management likes to walk through the college while th
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