Why allways tme exceed error arises.....?

t=raw_input()
pos=t.find(" ")
num1=t[:pos]
num2=t[pos+1:]
count=0
num1=int(num1)
num2=int(num2)
i=0
while i<num1:
numbers=input()
if numbers%num2==0:
count=count+1
i=i+1
print count

Please post the link to the question in your query. Otherwise we cannot help.

The problem stated “to verify whether the method you are using to read input data is sufficiently fast”.
Try fast input methods.

Use int(raw_input()) instead of input() as input is considerably slower.

//