I am trying to solve the problem Present at http://www.codechef.com/problems/INTEST/
I have made a small Python script to do my job :-
array = []
no_lines = 0
no = 0
j=0
div_no=0
no_lines = input()
no = input()
temp = no_lines
while(no_lines>0) :
i=0
i = input()
array[j] = i
j = j+1
no_lines = no_lines - 1
j=0
while(j<temp) :
if array[j] % no == 0 :
div_no=div_no+1
j = j+1
print(div_no,"\n")
I am having a problem in Inputing 2 integers on the same line
no_lines = input()
no = input()
I am really confused...How to get a successful output:-
In case of the following input:-
7 3
1
51
966369
7
9
999996
11
Error:-
SyntaxError: unexpected EOF while parsing