Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- n = int(input())
- m = [int(input()) for i in range(n)]
- for i in list(m):
- for j in list(m+1):
- if m[i]*m[j] > 0 and (m[i]+m[j]) % 7 == 0:
- count = count + 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement