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

Code

sanojen_maara = input()
a = 0
b = 0
def split(sana):
    return [char for char in sana] 


while (int(a) < int(sanojen_maara)):
    sana = input()
    if (len(split(sana))%2):
        b = b + 1
    else:
		a=a
    a = a+1
print(b)

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
(empty)

Error:
File "input/code.py", line 13
    a=a
      ^
TabError: inconsistent use of tabs and spa...

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
(empty)

Error:
File "input/code.py", line 13
    a=a
      ^
TabError: inconsistent use of tabs and spa...

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
(empty)

Error:
File "input/code.py", line 13
    a=a
      ^
TabError: inconsistent use of tabs and spa...