Task: | Sanalista |
Sender: | aapokivioja |
Submission time: | 2020-10-11 17:27:00 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | RUNTIME ERROR | 0 |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.02 s | details |
#2 | RUNTIME ERROR | 0.02 s | details |
#3 | RUNTIME ERROR | 0.02 s | details |
Code
def check(sanat): frekvenssi =[0]*26 n = len(sanat) for x in range(n): frekvenssi[ord(sanat[x])-97]+= 1 for x in range(26): if (frekvenssi[x]% 2 == 1): return False return True iteraatio = 0 sanat = ['huuliharppu','kirppusirkus','oskilloskooppi','papukaija','tieteellinen'] par_sanat = [] print(len(sanat)) #while iteraatio <= (len(sanat)-1): for x in sanat: if(check(sanat[iteraatio])): par_sanat.append(x) iteraatio = iteraatio + 1 print(len(par_sanat))
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
(empty) |
Error:
File "input/code.py", line 19 for x in sanat: ^ IndentationError: unexpected ind...
Test 2
Verdict: RUNTIME ERROR
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
(empty) |
Error:
File "input/code.py", line 19 for x in sanat: ^ IndentationError: unexpected ind...
Test 3
Verdict: RUNTIME ERROR
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
(empty) |
Error:
File "input/code.py", line 19 for x in sanat: ^ IndentationError: unexpected ind...