CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:Konsta
Submission time:2020-10-04 16:04:23 +0300
Language:CPython3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails

Code

count = 0
kohta = 0
for sana in syöte:
    väärä = 0
    kohta += 1
    if kohta == 1:
        pass
    else:
        for x in sana:
            määrä = sana.count(x)
            if (määrä % 2) != 0:
                väärä = 1
        if väärä == 1:
            pass
        else:
            count += 1
print(count)

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>
    for sana in sy\xf6te:
NameError: name 'sy\xf6te' is not defined

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>
    for sana in sy\xf6te:
NameError: name 'sy\xf6te' is not defined

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>
    for sana in sy\xf6te:
NameError: name 'sy\xf6te' is not defined