cf/mirror

No to Palindromes!

CF
464A1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 3
cba
Output
NO
Sample 2of 3
Input
3 4
cba
Output
cbd
Sample 3of 3
Input
4 4
abcd
Output
abda
464A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)