Submission details
Task:Palindromi
Sender:PuskaJamal
Submission time:2025-10-27 18:01:58 +0200
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.06 sdetails
#20.06 sdetails
#30.06 sdetails
#40.06 sdetails
#50.06 sdetails
#60.06 sdetails
#70.06 sdetails
#80.06 sdetails
#90.06 sdetails
#100.06 sdetails

Code

s = input()
b = 0
c = 0
a = len(s) // 2
for i in a+1 :
    if s[i-1] != s[len(s)-i+1]:
        b+=1


# Tulostetaan vastaus
print(b)

Test details

Test 1 (public)

Verdict:

input
datatahti

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 2 (public)

Verdict:

input
saippuakauppias

correct output
0

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 3 (public)

Verdict:

input
a

correct output
0

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 4 (public)

Verdict:

input
aa

correct output
0

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 5 (public)

Verdict:

input
abc

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 6 (public)

Verdict:

input
aybabtu

correct output
2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 7 (public)

Verdict:

input
abacabaca

correct output
2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 8 (public)

Verdict:

input
bbbbaaaababbbbbaabaaabaaaaabab...

correct output
23

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 9 (public)

Verdict:

input
acbaaabaabaddaccdcccbcdbdddacd...

correct output
38

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable

Test 10 (public)

Verdict:

input
uaqtmfftecryanvpshxsodjrllqnqp...

correct output
49

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 5, in <module>
    for i in a+1 :
TypeError: 'int' object is not iterable