Rezultati

Up. imeNalogaJezikRezultatČas oddaje
PIN Hierarhija Python 2 100/100OK 11. maj '17 @ 16:52

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

Ocenjevani program (hierarchy.py):
import sys

[N, M] = map(int, raw_input().split())

i = 1

nMinM = N - M

while i < nMinM:
	sys.stdout.write(str(i) + " ")
	i += 1

j = i
while i < N - 1:
	sys.stdout.write(str(j) + " ")
	i += 1
print j