Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = open('9.txt').readlines()
- a = []
- for e in data:
- a.append(list(map(int, e.split())))
- cnt = 0
- for e in a:
- e.sort()
- if (e[0] + e[-1]) ** 2 > e[1] ** 2 + e[2] ** 2 + e[3] ** 2:
- cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment