Skip to content

Instantly share code, notes, and snippets.

@RakshithNM
Created October 8, 2016 18:52
Show Gist options
  • Save RakshithNM/07548e05caad5bc27ac6de654939e98b to your computer and use it in GitHub Desktop.
Save RakshithNM/07548e05caad5bc27ac6de654939e98b to your computer and use it in GitHub Desktop.
x, y = raw_input().split()
x = int(x)
y = int(y)
ins = []
while x > 0:
ins.append(int(raw_input()))
x -= 1
count = 0
for a in ins:
if a % y == 0:
count += 1
else:
continue
print count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment