Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open("input.txt")
- a = []
- for line in f:
- if (line[-1] == '\n'):
- a.append(len(line) - 1)
- else:
- a.append(len(line))
- if a[2] != a[0] and a[1] != a[0] and a[2] * a[0] == a[1] * a[1]:
- print("YES")
- else:
- print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement