This page is still under construction.

Parts of this page are still being built. What you see may change.

Lamps

Time limit1sMemory limit512 MB

Summary
Add up to K lamps along a ceiling to minimize the total area of the dark triangles between neighboring lamps, and report the minimum as a reduced fraction.
Level

Medium7 of 10

Topics
Greedy, Heap, Math, Geometry
Solved
No attempts yet

Problem

The architect Ziemobit designed a glass corridor connecting two government offices. Several lamps hang from the corridor's ceiling, and each lamp shines light straight down in a cone with an apex angle of 90∘90^\circ (a triangle seen from the side, spreading 45∘45^\circ to each side of the point directly below the lamp).

Seen from the side, near the ceiling between any two neighboring lamps there is a triangular dark region that neither lamp's light reaches.

The corridor is tall enough that the original lamps already light the entire floor, and there are already lamps at both ends of the corridor (position 00 and position DD). So the only dark regions are the triangles between neighboring lamps.

There is budget left to add up to KK more lamps at any positions on the ceiling. Adding lamps shrinks the dark region. After adding at most KK lamps, make the total area of the dark region (seen from the side) as small as possible, and report that minimum.

Input

The first line contains three integers NN, KK, and DD (2≤N≤100 0002 \le N \le 100\,000, 0≤K≤100 0000 \le K \le 100\,000, 1≤D≤1091 \le D \le 10^9): the number of lamps already hanging, the number of lamps you may add, and the length of the corridor.

The second line contains NN increasing integers giving the lamp positions. The first is 00 and the last is DD.

Output

Print the minimum total area of the dark region after adding at most KK lamps, as a reduced fraction p/qp/q where pp and qq are integers with q≥1q \ge 1 and gcd⁡(p,q)=1\gcd(p, q) = 1.

Examples3

  1. Example 1

    Input
    3 1 5
    0 3 5
    
    Expected output
    17/8
    
  2. Example 2

    Input
    4 3 18
    0 1 13 18
    
    Expected output
    123/8
    
  3. Example 3

    Input
    2 1000 1000
    0 1000
    
    Expected output
    250000/1001