1.题目链接
http://codeforces.com/contest/798/problem/A2.题面
Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the resulting one is a palindrome.
A palindrome is a string that reads the same backward as forward, for example strings "z", "aaa", "aba", "abccba" are palindromes, but strings "codeforces", "reality", "ab" are not.
The first and single line contains string s (1 ≤ |s| ≤ 15).
Print "YES" (without quotes) if Mike can change exactly one character so that the resulting string is palindrome or "NO" (without quotes) otherwise.
abccaa
YES
abbcca
NO
abcda
YES
3.题意
输入一个字符串 改变一个字符 能形成回文就YES 不能就NO
4.思路
需要注意的就是如果是偶数的话 只能允许不相等数为一 如果是技术的话 可以为零 也可以为一 挺简单的题目
5.代码实现
6.反思
最开始的忘了奇数完全相同也可以了 WA了两次 难受