CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:ov
Submission time:2020-10-06 22:08:02 +0300
Language:CPython3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails

Code

counter = 0
n = input()

for i in range(int(n)):
    word = input()
    samecharacters = 1
    even = 0
    compared = []
    for j in range(len(word)):
        samecharacters = 1
        character = word[j]
        for k in range(len(word)): 
            character2 = word[k] 
            if character == character2 and j != k and character not in compared: 
                samecharacters = samecharacters + 1 
        compared.append(character)

        if (samecharacters % 2) == 0 and (k + 1) == len(word): 
            even = even + 1

    compared = list(dict.fromkeys(compared))
    if even == len(compared):                                                                                        

print(counter)

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
(empty)

Error:
File "input/code.py", line 24
    print(counter)
    ^
IndentationError: expected an indented block

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
(empty)

Error:
File "input/code.py", line 24
    print(counter)
    ^
IndentationError: expected an indented block

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
(empty)

Error:
File "input/code.py", line 24
    print(counter)
    ^
IndentationError: expected an indented block