HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Palindrome-k"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

AniNov.10.2016 at 10:28:33 PM
0---- Test 1 -----
3
1 keven
2 122
0 arry

----- pattern -----
2

imesecanNov.13.2016 at 12:35:38 PM
1
(1: bpengili15)
for: 2 122
2 is the number distortions allowed. And, 122 can be turned into palindrome with only 1 distortion, So, it can be accepted as a palindrome.

imesecanNov.13.2016 at 03:30:12 PM
2
(3: gzeqiri14)
Normally in palindrome the first char is the same as the last char. If a distortion is allowed, they may be different if the number of different chars are less than the allowed distortion number


www.contester.ru