Advertisement
Guest User

Untitled

a guest
Jun 14th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. count = 0
  2. n = int(input())
  3. m = [int(input()) for i in range(n)]
  4. for i in list(m):
  5.     for j in list(m+1):
  6.         if m[i]*m[j] > 0 and (m[i]+m[j]) % 7 == 0:
  7.             count = count + 1
  8. print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement