Rezultati

Up. imeNalogaJezikRezultatČas oddaje
jam-2018 Plezalne smeri Python 3 100/100OK 13. okt '18 @ 11:17

Test Točke Porabljen spomin Porabljen čas Status
#1 50/50 8,484 MiB 0,000 s OK
#2 50/50 8,711 MiB 0,000 s OK

Ocenjevani program (dve.py):
n = int(input())

smeri = []

tab = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII']
m = {}
counter = 0
for t in tab:
    m[t + '-'] = counter
    counter += 1
    m[t] = counter
    counter += 1
    m[t + '+'] = counter
    counter += 1

for i in range(n):
    inp = input().split(' ')
    smeri.append([inp[0], m[inp[1]]])

smeri.sort(key=lambda x: (x[1], x[0]))

for s in smeri:
    print(s[0])

'''


5
nemska IV+
bavarska IV+
slovenska IV+
sfinga IV+
ljubljanska IV+


'''