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

Code

sanat = []
sinä = 1
while (True):
    sinä = input()
    if (sinä == ""):
        break
    sanat.append(sinä)

a = 0
b = 0
print(len(sanat))

while (a<len(sanat)):
    lista = []
    
    for letter in sanat[a]:
        lista.append(letter)
    
    if (len(lista)%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
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 4, in <module>
    sin\xe4...

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 4, in <module>
    sin\xe4...

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 4, in <module>
    sin\xe4...