Workout Workout

Sam has prepared a fitness program so that he can become stronger! The program is made of N sessions. During the i-th session, Sam will do a certain amount of pushups. The number of pushups he does in each session is strictly increasing.

The difficulty of his fitness program is equal to the maximum difference in the number of pushups between any two consecutive training sessions.

To make his program less difficult, Sam has decided to add up to K additional training sessions to his fitness program. He can add these sessions anywhere in his fitness program,...

You should be an authorized user in order to see the full description and start solving this mission.