143 - Orchard Trees

This is a two dimensional geometry problem with two traps.

  • Equal-to-zero test should have precision of at least $10^{-8}.$
  • Input might not be a triangle at all.

Here is a reference solution.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.