ulvis.paste.net

Paste Search Dynamic
Recent pastes
range
  1. a = []
  2. N = int(input())
  3. res = 0
  4. for i in range(0,N):
  5.         a.append(int(input()))
  6. b = list(set(a))
  7. k = len(b)
  8. for i in range (0,k):
  9.         for j in range (i,k):
  10.                 if ((b[i]+b[j])%2==1) and ((b[i]*b[j])%3==0):
  11.                         res = res + 1
  12. print(res)
Parsed in 0.003 seconds