RightTriangle

From TopCoder. Right triangles on circle points. Solve the geometry problem "RightTriangle".

Examples
Input: [1,2,3]
Output: 0
Hints

RightTriangle

**From TopCoder.** Right triangles on circle points. Solve the geometry problem "RightTriangle".