LazyChild is a lazy child who likes candy very much. Despite being very young, he has two large candy boxes, each contains n candies initially. Everyd ......
There are NN children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following r ......