1051 到直线的最长距离


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

给定一条直线,给出一些坐标点,求这些坐标点到直线的最大距离。第一行有两个整数对,表示直线的两点,后面有一些整数对,那是给出的坐标点。结果保留三位小数。

Sample

Input

1 2 3 4
3 8
10 10
7 2
900 1

Output

636.396

Comments

There are no comments at the moment.