Submission #167191

#TimeUsernameProblemLanguageResultExecution timeMemory
167191boolodifjenulaTelefoni (COCI17_telefoni)Cpython 3
80 / 80
211 ms8912 KiB
N,D=map(int,input().split()) T=list(map(int,input().split())) b=0 n=0 for i in range(1,N): if T[i]==0: n+=1 else: n=0 if n==D: T[i]==1 n=0 b+=1 print(b)
#Verdict Execution timeMemoryGrader output
Fetching results...