Astronomer
면접 대비시간 제한5초메모리 제한1024 MB
별 k개 이상을 덮는 원의 중심과 반지름 r을 정해, 원점에서 중심까지의 거리에 s를, r에 t를 곱한 값의 합을 최소화한다.
문제
The astronomer has a passion for stargazing. In particular, he gets immense pleasure out of gazing at stars simultaneously through his telescope. Building a telescope with radius costs kroner. A newly built telescope will point exactly at the origin . Moving it to point somewhere else also takes effort; shifting the telescope a distance of units incurs a cost of kroner. The astronomer can observe all stars at distance at most from where the telescope points.
How much does it cost to build and move a telescope that allows stars to be observed at once?
All coordinates and distances are given in the Euclidean plane.
Here is an example with stars at positions , , and . The shaded area shows a telescope of radius pointing at covering two stars; this costs kroner and is an optimal solution to sample input . The image also shows optimal solutions to sample inputs , , and .

입력
The first line consists of four integers: the number of stars the astronomer wants to observe, the number of stars in tonight's sky, the shifting cost , and the telescope building cost . Then follow lines, where the th line contains the integer coordinates and of the th star.
출력
A single real number: the minimum number of kroner that the astronomer needs to spend.
제한
- .
- for all .
- .
- Your output is accepted if it is within a relative or absolute tolerance of of the correct answer.