답안 #167190

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
167190 2019-12-06T10:00:43 Z boolodifjenula Telefoni (COCI17_telefoni) Python 3
16 / 80
204 ms 9480 KB
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
    if n==D:
        T[i]==1
        n=0
        b+=1
print(b)
# 결과 실행 시간 메모리 Grader output
1 Correct 26 ms 3404 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Incorrect 26 ms 3300 KB Output isn't correct
4 Incorrect 26 ms 3300 KB Output isn't correct
5 Incorrect 25 ms 3300 KB Output isn't correct
6 Incorrect 25 ms 3300 KB Output isn't correct
7 Incorrect 26 ms 3420 KB Output isn't correct
8 Incorrect 204 ms 9440 KB Output isn't correct
9 Incorrect 200 ms 9432 KB Output isn't correct
10 Incorrect 187 ms 9480 KB Output isn't correct