Rezultati

Up. imeNalogaJezikRezultatČas oddaje
hrosci-2017 Pasavci Python 2 0/100Napaka med izvajanjem / ob izhodu (RTE) 11. maj '17 @ 19:16

Test Točke Porabljen spomin Porabljen čas Status
#1 0/5 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'UDUP' is not defined
#2 0/5 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'ROUR' is not defined
#3 0/5 6,531 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'JAJJ' is not defined
#4 0/5 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'MMZV' is not defined
#5 0/5 6,523 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'CGGC' is not defined
#6 0/5 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'XAXW' is not defined
#7 0/5 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'JYZZ' is not defined
#8 0/5 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'ZFZ' is not defined
#9 0/6 6,523 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'QQQ' is not defined
#10 0/6 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ' is not defined
#11 0/6 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'PPP' is not defined
#12 0/6 6,523 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'QRBQ' is not defined
#13 0/6 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'godzillagodzilla' is not defined
#14 0/6 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'TT' is not defined
#15 0/6 6,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'AAAAAAAAAA' is not defined
#16 0/6 6,488 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'AGA' is not defined
#17 0/6 6,492 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'A' is not defined
#18 0/6 6,496 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py", line 14, in <module>
    gen = input()
  File "<string>", line 1, in <module>
NameError: name 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' is not defined

Ocenjevani program (Pasavci.py):
def pasavci(gen ,prvi, drugi, seznam):
    nsez = [prvi, drugi]
    for [a,b] in seznam:
        nsez.append(nsez[int(a)-1]+nsez[int(b)-1])
    k = 0
    for i in range(len(nsez[-1]) - len(gen) + 1):
        if nsez[-1][i:(i + len(gen))] == gen:
            k += 1
    return k

import sys


gen = input()
prvi = input()
drugi = input()
input()
sez = []
for vrstica in sys.stdin:
    sez.append(vrstica.strip().split(" "))
print(pasavci(gen, prvi, drugi, sez))