시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 0 0 0 0.000%

문제

The seashore is represented by a polyline without self-intersections, described by a sequence of vertices (x1, y1), … (xN, yN). It also has a property that xi < xi + 1. The sea is above the line, and the beach — below.

Your program must connect two vertices with a straight line not longer than L chosen so as to maximize the beach area enclosed between that line and the shore. The line must not intersect with the sea and may only touch, not intersect, the shore polyline. 

입력

Input file contains integer numbers N L, followed by N pairs of integers x1 y1 … xN yN

출력

Output file must contain a single floating point value — the maximum area that can be cut (it may be zero). The area must be output exactly, i.e. without any rounding at all.

제한

  • 3 ≤ N ≤ 5000
  • 0 ≤ xi, yi, L ≤ 1000000 

예제 입력 1

5 4 
0 0 1 3 2 0 3 3 4 0

예제 출력 1

6

예제 입력 2

3 10
100 100 101 0 102 100

예제 출력 2

0