Rezultati

Up. imeNalogaJezikRezultatČas oddaje
jam-2018 Tabela Python 3 100/100OK 13. okt '18 @ 10:54

Test Točke Porabljen spomin Porabljen čas Status
#1 20/20 10,340 MiB 0,873 s OK
#2 20/20 9,219 MiB 0,000 s OK
#3 20/20 8,617 MiB 0,000 s OK
#4 20/20 8,656 MiB 0,000 s OK
#5 20/20 8,520 MiB 0,000 s OK

Ocenjevani program (main.py):
visina, sirina = input().split(' ')
visina = int(visina)
sirina = int(sirina)

lr = input()

tab = []

for y in range(visina):
    tab.append(input().split(','))

maxsirine = []

for y in range(sirina):
    m = -1
    for x in range(visina):
        if len(tab[x][y]) > m:
            m = len(tab[x][y])
    maxsirine.append(m)

for x in range(visina):
    for y in range(sirina):
        bes = tab[x][y]
        d = maxsirine[y] - len(bes)

        if lr[y] == 'L':
            print(bes, end='')
        for i in range(d):
            print(' ', end='')
        if lr[y] == 'R':
            print(bes, end='')

        if y < sirina - 1:
            print(' | ', end='')
    print()













'''

2 3
LRL
Miha,10000,EUR
Aleksander,10,BTC




'''