Rezultati

Up. imeNalogaJezikRezultatČas oddaje
boku-yes-pico-2019 Kuponi za pice Python 3 100/100OK 24. apr '19 @ 16:56

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 29,699 MiB 1,170 s OK
#2 [več] 16/16 19,340 MiB 0,000 s OK
#3 [več] 17/17 15,496 MiB 0,000 s OK
#4 [več] 17/17 24,879 MiB 0,643 s OK
#5 [več] 17/17 27,590 MiB 0,887 s OK
#6 [več] 17/17 29,145 MiB 1,059 s OK

Ocenjevani program (pice.py):
tmp = input().split(' ')
n = int(tmp[0])
k = int(tmp[1])
pice = []
for i in range(n):
    pice.append(sorted(map(int, input().split(' ')), reverse=True))
pice.sort()
total = 0
for i in range(k):
    total += pice[i][0]
print(total)