Watering an Array

Problem Name:
Watering an Array
Site:CodeForces
Links:
Tags:
Problem setters: