Rezultati

Up. imeNalogaJezikRezultatČas oddaje
fmffml-2018 Podnapisi Python 3 0/100Napaka med izvajanjem / ob izhodu (RTE) 10. maj '18 @ 18:46

Test Točke Porabljen spomin Porabljen čas Status
#1 0/7 8,602 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#2 0/7 8,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#3 0/7 8,664 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#4 0/7 8,977 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#5 0/7 8,488 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#6 0/7 8,676 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#7 0/7 8,664 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#8 0/7 8,438 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#9 0/7 8,496 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#10 0/7 8,547 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#11 0/7 8,660 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#12 0/7 8,582 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#13 0/8 8,695 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line
#14 0/8 8,500 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 24, in <module>
    vnos = input()
EOFError: EOF when reading a line

Ocenjevani program (gotofsire.py):
#import re

def vtis(niz):
    return int(niz[0:2]) * 3600*1000 + int(niz[3:5])*60*1000 + int(niz[6:8])*1000 + int(niz[9:])

def iztis(tisocinke):
    t = str(tisocinke % 1000).zfill(3)
    tisocinke //= 1000
    s = str(tisocinke % 60).zfill(2)
    tisocinke //= 60
    m = str(tisocinke % 60).zfill(2)
    tisocinke //= 60
    h = str(tisocinke % 60).zfill(2)
    return h+":"+m+":"+s+","+t


shift = input()
shift = shift[7:]
zamik = vtis(shift)
star = 'cipa'
podnapis = ''
vnos = 'S'
while vnos[-1] != '\n':
    vnos = input()
    if vnos[13:16] != '-->':
        podnapis += (vnos + '\n')
        if vnos == '': vnos = 'krneki'
        continue
    zac = vtis(vnos[:12])
    kon = vtis(vnos[17:29])
    zac += zamik
    kon += zamik
    podnapis += iztis(zac) + ' --> ' + iztis(kon) + '\n'
    #star = vnos
print(podnapis)