Rezultati

Up. imeNalogaJezikRezultatČas oddaje
narcos Hierarhija Python 3 100/100OK 11. maj '17 @ 17:15

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 8,523 MiB 0,000 s OK
#2 10/10 8,633 MiB 0,000 s OK
#3 10/10 8,551 MiB 0,000 s OK
#4 10/10 8,680 MiB 0,000 s OK
#5 10/10 8,648 MiB 0,000 s OK
#6 10/10 8,691 MiB 0,000 s OK
#7 10/10 8,629 MiB 0,000 s OK
#8 10/10 8,633 MiB 0,000 s OK
#9 10/10 8,695 MiB 0,000 s OK
#10 10/10 8,676 MiB 0,000 s OK

Ocenjevani program (tiest.py):
import sys
f= sys.stdin
#f = open('test.txt','r')
lines = f.read().strip().split('\n')
numrat = lines[0].split(' ')
n = int(numrat[0])
m = int(numrat[1])
d = dict()
k = n//m
for i in range(2,n+1):
    if i+m<=n:
        d[i]=i+m
        
    else:
        d[i]=1
s = ''
for i in range(2,n+1):
    s+=str(d[i])+" "
s = s.strip()
print(s)
f.close()