Submission #8871772


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip()

T = S[::-1]

L = (len(S) + 1) // 2

answer = sum(x != y for x,y in zip(S[:L],T[:L]))
print(answer)

Submission Info

Submission Time
Task B - Palindrome-philia
User maspy
Language Python (3.4.3)
Score 200
Code Size 248 Byte
Status AC
Exec Time 17 ms
Memory 3060 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 23
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt, sub1_19.txt, sub1_20.txt
Case Name Status Exec Time Memory
sample_01.txt AC 17 ms 2940 KB
sample_02.txt AC 17 ms 3060 KB
sample_03.txt AC 17 ms 2940 KB
sub1_01.txt AC 17 ms 3060 KB
sub1_02.txt AC 17 ms 2940 KB
sub1_03.txt AC 17 ms 2940 KB
sub1_04.txt AC 17 ms 2940 KB
sub1_05.txt AC 17 ms 3060 KB
sub1_06.txt AC 17 ms 3060 KB
sub1_07.txt AC 17 ms 2940 KB
sub1_08.txt AC 17 ms 2940 KB
sub1_09.txt AC 17 ms 3060 KB
sub1_10.txt AC 17 ms 2940 KB
sub1_11.txt AC 17 ms 3060 KB
sub1_12.txt AC 17 ms 2940 KB
sub1_13.txt AC 17 ms 2940 KB
sub1_14.txt AC 17 ms 2940 KB
sub1_15.txt AC 17 ms 3060 KB
sub1_16.txt AC 17 ms 3060 KB
sub1_17.txt AC 17 ms 3060 KB
sub1_18.txt AC 17 ms 3060 KB
sub1_19.txt AC 17 ms 3060 KB
sub1_20.txt AC 17 ms 2940 KB