Pythagorean Triples

Given three positive integers a, b, c in arg1, decide whether they form a Pythagorean triple in some order. Return 1 when the numbers satisfy x*x + y*y == z*z after sorting to x <= y <= z, and return 0 otherwise. The order of the three values does not matter.

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

Pythagorean Triples

Given three positive integers `a`, `b`, `c` in `arg1`, decide whether they form a Pythagorean triple in some order. Return `1` when the numbers satisfy `x*x + y*y == z*z` after sorting to `x <= y <= z`, and return `0` otherwise. The order of the three values does not matter.