2014-1: It Is All Right

Write code that takes the length of the legs of a triangle as its first argument, and the length of the hypotenuse as its second argument and returns 1 if the triangle is a right triangle, 0 otherwise.

Examples

Implementation

You can also run the tests via ⌘/shift + enter