Frogv problem

what will be the output if input like
5 3 1
0 3 8 5 12
3 4

This is the question of an ongoing contest!

You are not supposed to discuss!

Here are the first 2 points of the rules and regulations on the contest page:

  1. Please do not discuss strategy, suggestions or tips in the comments during a live contest. Posting questions clarifying the problem statement is okay. If you are unsure, email us at feedback@codechef.com .

  2. Discussing CodeChef’s problems or any aspect of problem, on any other platform on web, on identification, could lead to disabling of respective account and banning from the community… Contest problems will become visible on Friday, 4th July 2014 at 15:00 hours IST. Check your timezone here.


    Read all the points on the contest page carefully.

4 Likes
//