Rezultati

Up. imeNalogaJezikRezultatČas oddaje
programskrivnosti-2017 Hodnik Python 3 100/100OK 20. apr '17 @ 17:44

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 8,590 MiB 0,000 s OK
#2 10/10 8,629 MiB 0,000 s OK
#3 10/10 8,625 MiB 0,000 s OK
#4 10/10 8,609 MiB 0,000 s OK
#5 10/10 8,617 MiB 0,000 s OK
#6 10/10 8,598 MiB 0,000 s OK
#7 10/10 8,629 MiB 0,000 s OK
#8 10/10 8,621 MiB 0,000 s OK
#9 10/10 8,621 MiB 0,000 s OK
#10 10/10 8,609 MiB 0,000 s OK

Ocenjevani program (hodnik.py):
line = input()
N = len(line)
st0 = 0
st1 = 0
for i in range(N):
    if int(line[i])%2 == i % 2:
        st0 += 1
    else:
        st1 += 1

print(min(st0, st1))