ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1297. Palindrome

blablabla If you wa on test#12 , try this data [5] // Problem 1297. Palindrome 17 Aug 2012 14:56
input : ABCDLKOIKJTFIDCBA

ouput is a single letter such as A K and I
NOT “ABCD” or what have you .
Why is the answer not "ABCD" in this case?
sds3031 Re: If you wa on test#12 , try this data [3] // Problem 1297. Palindrome 17 Jun 2016 15:49
YES, why is not ABCD
blablabla wrote 17 August 2012 14:56
input : ABCDLKOIKJTFIDCBA

oh...I see..

Edited by author 17.06.2016 15:54
andrYushka Re: If you wa on test#12 , try this data [2] // Problem 1297. Palindrome 15 Jul 2019 20:54
I think ,cause we need to find a substring,not a subsequence
ismaelkno Re: If you wa on test#12 , try this data [1] // Problem 1297. Palindrome 5 Apr 2026 05:33
Guys my code returns "A" for that test case, but still WA 12. Any ideas?

Edited by author 05.04.2026 05:33
ismaelkno Re: If you wa on test#12 , try this data // Problem 1297. Palindrome 5 Apr 2026 05:42
Nvm. Another useful tc could be: "Kbzbkaba". If your sol outputs "aba" it's wrong, it should be "bzb".