← Back to List

11596번: Triangle ↗

Solutions

Python 3
161 B | 161 chars
a = sorted([*map(int, input().split())])
b = sorted([*map(int, input().split())])

print("YES" if a == b and a[0] * a[0] + a[1] * a[1] == a[2] * a[2] else "NO")