fork download
  1. import math
  2.  
  3. x1 = float(input())
  4. y1 = float(input())
  5. x2 = float(input())
  6. y2 = float(input())
  7. x3 = float(input())
  8. y3 = float(input())
  9.  
  10. S = 0.5 * abs(
  11. x1 * (y2 - y3) +
  12. x2 * (y3 - y1) +
  13. x3 * (y1 - y2)
  14. )
  15.  
  16. print(S)
  17.  
Success #stdin #stdout 0.01s 7360KB
stdin
2
1
6
5
10
1
stdout
16.0