Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests [2]
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: 186, Accepted users: 177
Problem 10003 : No special judgement
Problem description
  给出二维空间上的三个点a,b,c,它们的坐标分别为,(x1,y1),(x2,y2),(x3,y3)。请编写一个程序,求出这三点所构成的三角形的面积。其中所有整数的取值范围是[-100,100]。

Input
  每行有6个整数,用空格分开,分别表示x1,y1,x2,y2,x3,y3。有多个测试数据,直到输入文件结束为止。

Output
  每行输出对应于输入给出的三角形的面积,精确到6位小数。

Sample Input
0 0 4 0 0 3
Sample Output
6.000000
Submit   Clarifications   Judge Status  Problems  Ranklist 

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