Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("in.txt")
- count = 0
- for elem in file:
- A = list(map(int, elem.split()))
- A.sort()
- if (A[3]**3 >= 2 * A[0] * A[1] * A[2]) and (A[0] > 10 and A[1] > 10 and A[2] > 10 and A[3] > 10):
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment