CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:ov
Submission time:2020-10-06 15:02:28 +0300
Language:PyPy3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.07 sdetails

Code

n,word = [x for x in input().split()]
counter = 0
for i in range(n):
    if (len(word) % 2) == 0:
        counter += 1
print(counter)

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 1, in <module>
    n,word = [x for x in input().split()]
ValueError: not enough values to unpack (expected 2, got 1)

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 1, in <module>
    n,word = [x for x in input().split()]
ValueError: not enough values to unpack (expected 2, got 1)

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 1, in <module>
    n,word = [x for x in input().split()]
ValueError: not enough values to unpack (expected 2, got 1)