PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#FW0000017. Núi Sấm (Thunder Mountain)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Núi Sấm (Thunder Mountain)
Thunder Mountain
Source: UVa
Version: Phuoc Hung OJ Extended
Problem Statement
Towns have integer coordinates. Direct travel is allowed only if Euclidean distance is at most . Find the largest shortest distance between any two towns, or print Send Kurdy if disconnected.
Input
followed by integer coordinate pairs.
Output
Print Send Kurdy or a real value with four decimal places.
Subtasks
- Subtask 1 (40 points): ; ; .
- Subtask 2 (60 points): ; .
Examples
Input
3
0 0
3 4
6 8
Output
10.0000
Explanation
The direct Euclidean distances are , , and . All are within the allowed ; the maximum shortest route is .