# HELP-July Lunchtime 2020 Division 2-Chef and Steps(CHEFSTEP)

lst=[]
t=int(input())
for i in range(t):
N = list(map(int,input()))
for j in range(N[0]):
a=int(input())
lst.append(a)
if lst[j]%N[1]==0:
lst[j]=“1”
else:
lst[j]=“0”
if N[0]==1:
print(int(lst[0]))
lst.clear

``````else:
alpha= "".join(lst)
lst.clear()
print(int(alpha))
``````

RUNTIME ERROR

https://www.codechef.com/viewsolution/35964366

The distances are in a single line. Use something like `dist = list(map(int, input().split()))` and iterate after taking the input.

You need to input all n values together as a list.
There is no need to use loop for n.

``````lst = list(map( int, input().split() ) )
``````

Similarly, for n and k, use

``````n,k = map( int, input().split() )
``````

But in the sample cases they where arranged:
23
44
56
and not like:
23 44 56

But in the sample cases they where arranged:
23
44
56
and not like:
23 44 56

so, therefore, I accepted the input distance one at a time

They changed that later on. It was announced.
Also the sample input mentions it as a single line.

You made this thread at 15:05 IST today and the announcement regarding the change was made at 19:40 IST yesterday.

1 Like

oh, I am new where was the announcement done?