Rezultati

Up. imeNalogaJezikRezultatČas oddaje
soncki-2017 Hierarhija Python 100/100OK 11. maj '17 @ 17:05

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 6,348 MiB 0,000 s OK
#2 10/10 6,340 MiB 0,000 s OK
#3 10/10 6,320 MiB 0,000 s OK
#4 10/10 6,316 MiB 0,000 s OK
#5 10/10 6,316 MiB 0,000 s OK
#6 10/10 6,352 MiB 0,000 s OK
#7 10/10 6,352 MiB 0,000 s OK
#8 10/10 6,352 MiB 0,000 s OK
#9 10/10 6,352 MiB 0,000 s OK
#10 10/10 6,316 MiB 0,000 s OK

Ocenjevani program (hierarhija.py):
line = raw_input()
n = int(line.split(" ")[0])
m = int(line.split(" ")[1])

i = 2
s = ""

nminusm = n - m

i = 1

while (n > 1):
    if (i >= nminusm):

        s += str(nminusm) + " "
    else:
        s += str(i) + " "
    i += 1
    n = n - 1

print(s)