fork download
  1.  
  2. x1, y1 = map(float, input().split())
  3. x2, y2 = map(float, input().split())
  4. x3, y3 = map(float, input().split())
  5.  
  6. S = (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1)
  7.  
  8. if abs(S) < 1e-9:
  9. print("Так")
  10. else:
  11. print("Ні")
  12. #coment("0JzQtdC70YzQvdC40Log0J3RltC60ZbRgtCw")
Success #stdin #stdout 0.08s 14060KB
stdin
2 2
1 1
8 8
stdout
Так