fork(5) download
  1. # your code goes here
  2. import math
  3. p=map(int,raw_input().split())
  4. da=math.sqrt((p[3]-p[1])**2+(p[2]-p[0])**2)
  5. db=math.sqrt((p[5]-p[3])**2+(p[4]-p[2])**2)
  6. dc=math.sqrt((p[5]-p[1])**2+(p[4]-p[0])**2)
  7. obw=(da+db+dc)
  8. p=obw/2
  9. P=math.sqrt(p*(p-da)*(p-db)*(p-dc))
  10. r=(2*P)/obw
  11. R=(da*db*dc)/(4*r*p)
  12. print '%.2f' %R
  13.  
Success #stdin #stdout 0.01s 9032KB
stdin
0 0 3 0 3 4
stdout
2.50