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

Code

n=input()

def is_even(n):
	return m%2==0

words=list()
for i in range(0, n):
words.append(input())

sum_out=0
for word in words:
	chars = dict()
	has_even = True
	for char in word:
		if not char in chars.keys():
			chars[char] = 0
		chars[char] += 1
	
	for item in chars.items():
		if not is_even(item[1]):
			has_even = False
			break
	
	if has_even:
		sum_out += 1
	
	

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
(empty)

Error:
File "input/code.py", line 8
    words.append(input())
        ^
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 8
    words.append(input())
        ^
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 8
    words.append(input())
        ^
IndentationError: expected an indented block