Rezultati

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

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

Ocenjevani program (hodnik.py):
s = input()
cx = 0
cy = 0
i = 0
for i in range(len(s)):
    if i%2 == int(s[i]):
        cx += 1
    else:
        cy +=1
print(min(cx,cy))