This is my solution for the enormous input test problem, and it is exceeding time limit.
n, k = [int(_) for _ in raw_input().split(" ")]
a = 0
for i in xrange(n):
if int(raw_input())%k==0:
a+=1
print a
What is wrong with this code?
This is my solution for the enormous input test problem, and it is exceeding time limit.
n, k = [int(_) for _ in raw_input().split(" ")]
a = 0
for i in xrange(n):
if int(raw_input())%k==0:
a+=1
print a
What is wrong with this code?