Submission details
Task:Palindromi
Sender:Wiita
Submission time:2025-10-27 12:30:20 +0200
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails

Code

# Luetaan syöte
s = input("sana: ")

# Kirjoita ratkaisusi tähän
muutokset = 0

sana = list(s)
for x in range(len(s) // 2):
    if sana[x] != sana[-x - 1]:
        muutokset += 1

# Tulostetaan vastaus
print(muutokset)

Test details

Test 1 (public)

Verdict:

input
datatahti

correct output
3

user output
sana: 3

Test 2 (public)

Verdict:

input
saippuakauppias

correct output
0

user output
sana: 0

Test 3 (public)

Verdict:

input
a

correct output
0

user output
sana: 0

Test 4 (public)

Verdict:

input
aa

correct output
0

user output
sana: 0

Test 5 (public)

Verdict:

input
abc

correct output
1

user output
sana: 1

Test 6 (public)

Verdict:

input
aybabtu

correct output
2

user output
sana: 2

Test 7 (public)

Verdict:

input
abacabaca

correct output
2

user output
sana: 2

Test 8 (public)

Verdict:

input
bbbbaaaababbbbbaabaaabaaaaabab...

correct output
23

user output
sana: 23

Test 9 (public)

Verdict:

input
acbaaabaabaddaccdcccbcdbdddacd...

correct output
38

user output
sana: 38

Test 10 (public)

Verdict:

input
uaqtmfftecryanvpshxsodjrllqnqp...

correct output
49

user output
sana: 49