Farz0l1x

Untitled

Nov 25th, 2023
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. file = open("8A.txt")
  2. A = list(map(int, file.readlines()))
  3. count = 0
  4. for i in range(len(A)):
  5.     for j in range(i + 1, len(A)):
  6.         if (A[i] + A[j]) % 80 == 0 and (A[i] > 50000 or A[j] > 50000):
  7.             count += 1
  8. print(count)
Advertisement
Add Comment
Please, Sign In to add comment