Go to Index Go back View Code Refresh

#B. River

    传统题 100ms 256MiB

River

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

River

Description

Two lovely frogs Alice and Bob live by a river. There are several stones in this river. Every morning, they will go to the other side of the river to have fun. They cross the river by jumping from one stone to another. One day, Alice decides to play tricks on Bob. She plans to remove some stones so that there is no "easy jump" for Bob to across the river any more. But she has no idea which stones she should remove. She needs your help.

The width of the river is an integer L L ( 1 L 1 , 000 , 000 , 000 1\le L\le 1,000,000,000 ). We treat the river as a one-dimensional line segment,with two endpoints A (two frog's home) and B (the other side of the river). Among the river, there are N N stones ( 0 N 50 , 000 0\le N\le 50,000 ). The distance from the i-th stone to side A is D i D_i ( 0 < D i < L ) 0<D_i<L) . Alice would like to remove M M stones in the river ( 0 M N 0\le M\le N ) so that with the rest of the stones, the minimum distance among all possible jumps for Bob is the largest.

Input

Each instance contains two lines. The first line contains three integers L L , N N and M M . The second line gives the positions of M M stones. No two stones share the same position.

* 30% test cases guarantee that N < 20 N < 20 .

Output

For each instance, output a single line with a single integer which is the maximum of the minimum distance among all possible jumps after removing M M stones.

Samples

输入数据 1

25 5 2
2 14 11 21 17

输出数据 1

4

Hint

In the example, Alice should remove stones with distance 2 2 and 14 14 . After removing these two stones, the minimum distance of jumps is 4 4 , and there are two jumps with distance 4 4 : from 17 17 to 21 21 , and from 21 21 to 25 25 .