Rezultati

Up. imeNalogaJezikRezultatČas oddaje
zerodays-2018 Tabela Python 3 100/100OK 13. okt '18 @ 11:29

Test Točke Porabljen spomin Porabljen čas Status
#1 20/20 9,598 MiB 0,000 s OK
#2 20/20 8,691 MiB 0,000 s OK
#3 20/20 8,695 MiB 0,000 s OK
#4 20/20 8,512 MiB 0,000 s OK
#5 20/20 8,590 MiB 0,000 s OK

Ocenjevani program (tabela.py):
r, c = map(int, input().split())
poravnave = input()

lines = []
max_sirine = [0 for _ in range(c)]

for _ in range(r):
    l = input().split(',')
    lines.append(l)

    for i in range(c):
        max_sirine[i] = max(max_sirine[i], len(l[i]))

for i in range(len(lines)):
    
    for j, beseda in enumerate(lines[i]):
        if poravnave[j] == 'R':
            s = ' '*(max_sirine[j] - len(beseda)) + beseda
            print(s, end='')
        else:
            s = beseda + ' '*(max_sirine[j] - len(beseda))
            print(s, end='')
        
        if j != c-1:
            print(' | ', end='')

    print()