Rezultati

Up. imeNalogaJezikRezultatČas oddaje
fmffml-2017 Hierarhija Python 3 100/100OK 11. maj '17 @ 17:40

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 8,617 MiB 0,000 s OK
#2 10/10 8,617 MiB 0,000 s OK
#3 10/10 8,613 MiB 0,000 s OK
#4 10/10 8,863 MiB 0,000 s OK
#5 10/10 8,816 MiB 0,000 s OK
#6 10/10 8,828 MiB 0,000 s OK
#7 10/10 8,801 MiB 0,000 s OK
#8 10/10 8,855 MiB 0,000 s OK
#9 10/10 8,832 MiB 0,000 s OK
#10 10/10 8,777 MiB 0,000 s OK

Ocenjevani program (hierarhija.py):
def hierarhija(n, m):
    x = int(n)-int(m)-1
    rez = []
    for i in range(x):
        rez.append(3 + i)
    for j in range(int(m)):
        rez.append(1)
    return rez


vnos = input()
vnos1 = vnos.split()
rezultat = hierarhija(vnos1[0], vnos1[1])

for stevilo in rezultat:
    print(stevilo, ' ')