Rezultati

Up. imeNalogaJezikRezultatČas oddaje
functor2018 Niz Python 3 100/100OK 19. apr '18 @ 16:37

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 8,340 MiB 0,000 s OK
#2 10/10 8,340 MiB 0,000 s OK
#3 10/10 9,055 MiB 0,000 s OK
#4 10/10 9,145 MiB 0,000 s OK
#5 10/10 9,055 MiB 0,000 s OK
#6 10/10 9,051 MiB 0,000 s OK
#7 10/10 9,145 MiB 0,000 s OK
#8 10/10 9,047 MiB 0,000 s OK
#9 10/10 9,141 MiB 0,000 s OK
#10 10/10 9,141 MiB 0,000 s OK

Ocenjevani program (niz.py):
inp = input()
s=list(input())
c=0
for i in range(2,len(s)):
    if s[i-2:i+1]==list('010'):
        s[i]='1'
        c+=1
    
print(c)