Task: | Sanalista |
Sender: | aapokivioja |
Submission time: | 2020-10-11 17:26:24 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.02 s | details |
#2 | WRONG ANSWER | 0.02 s | details |
#3 | WRONG ANSWER | 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: WRONG ANSWER
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
5 3 |
Test 2
Verdict: WRONG ANSWER
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
5 3 |
Test 3
Verdict: WRONG ANSWER
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
5 3 |