U182197 Leader's arrangements
题目背景
Little W will do something boring! Undergo a long process of tempering,so Little W need some time to have a rest.For you,to be the leader of Little W,you should give him the shortest time to rest,because you are sleepy.But you must give him enough time to rest to keep him quiet.
题目描述
There are $N$ days,Every day Little W need $a_i$ "Happiness points" Happiness points on the first day was $K$.When Little W Complete the something boring,next day's "Happiness points" was remaining happiness points of the previous day subtract $L$.Every day you can let Little W rest $x$ minute to get $x$ "Happiness points".Find the maximum number of minutes you need to let Little W rest in $N$ days.You have to figure it out in 1s to keep Little W quiet.
输入格式
The first line of input contains $N,K,L$.In the $N$ lines that follow,the $i$th line contains $a_i$.
输出格式
The ouput contains only one line.The only line of output contains the maximum number of minutes you need to let Little W rest in $N$ days.
说明/提示
$N$