ulvis.paste.net

Paste Search Dynamic
Recent pastes
input
  1. input()
  2. dzielniki = [int(x) for x in input().split()]
  3. proby = int(input())
  4. for z in range(proby):
  5.         a = int(input())
  6.         s = 0
  7.         for x in dzielniki:
  8.                 if a%x==0:
  9.                         s = s+1
  10.         print(s)
Parsed in 0.002 seconds