Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. f = open("input.txt")
  2. a = []
  3. for line in f:
  4.     if (line[-1] == '\n'):
  5.         a.append(len(line) - 1)
  6.     else:
  7.         a.append(len(line))
  8. if a[2] != a[0] and a[1] != a[0] and a[2] * a[0] == a[1] * a[1]:
  9.     print("YES")
  10. else:
  11.     print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement