CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:Totska
Submission time:2021-09-15 17:32:36 +0300
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.09 sdetails
#20.08 sdetails
#30.09 sdetails

Code

n = int(input())

sanat = {input() for i in range(n+1)}

# print(sanat)

let = {}
for i in range(97, 123):
    let[chr(i)] = 0

result = 0

for word in sanat:
    l = let.copy()
    fail = False

    for ch in word:
        l[ch] += 1

    for key in l:
        if l[key] % 2 != 0:
            fail = True
            break
    if fail:
        continue
    else:
        result += 1

print(result)

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    sanat =...

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    sanat =...

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    sanat =...