Rezultati

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

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

Ocenjevani program (2.py):
import sys
d = {"I-":1, "I":2, "I+":3, "II-":4, "II":5, "II+":6, "III-":7, "III":8, "III+":9,
     "IV-":10, "IV":11,"IV+":12, "V-":13, "V":14, "V+":15, "VI-":16, "VI":17, "VI+":18,
     "VII-":19, "VII":20, "VII+":21, "VIII-":22, "VIII":23, "VIII+":24, "IX-":25, "IX":26, "IX+":27,
     "X-":28, "X":29, "X+":30, "XI-":31, "XI":32, "XI+":33, "XII-":34, "XII":35, "XII+":36}

#sys.stdin = open("1.in")

n = int(sys.stdin.readline().strip())
sez = []
for _ in range(n):
    sez.append(sys.stdin.readline().strip().split())



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

for i in sez:
    print(i[0])