Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
点到线段的距离
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 97, Accepted users: 70
Problem 11321 : No special judgement
Problem description
  点到线段的距离定义为另一个线段的最短长度,该线段的一个端点即对象点,另一个端点则为对象线段上的任意一点。

Input
  输入有多个案例。每个案例一行,每行共6个整数。分别表示对象点的坐标以及线段的两个端点坐标(保证两个端点不为同一个点)。坐标取值范围在[-2147483648, 2147483647]之间。

Output
  对每一个案例,输出一行,为点到线段的距离,保留2位小数。

Sample Input
0 0 1 0 1 1
Sample Output
1.00
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2354 today,16259081 total, since 2010-05-07