CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:Ileska
Submission time:2020-09-30 12:31:19 +0300
Language:Python3 (CPython3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails

Code

sanat = input()
lista = sanat.split(" ")
a = 0
b = 0
print(lista)
"""
F = open("workfile.txt","r") 
print(F)
"""
while(a < len(lista)):

    Sanat = []

    for letter in lista[a]:
        Sanat.append(letter)
    
    if (len(Sanat)%2):
        a=a
    else:
        b = b + 1 
    a = a+1
    
print(b)

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
['1000']
1

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
['1000']
1

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
['1000']
1