{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003e\u003c/p\u003e\r\n\u003ctable class\u003d\"problems\" style\u003d\"width: 99%;\" border\u003d\"0\"\u003e\r\n\u003ctbody\u003e\r\n\u003ctr class\u003d\"navigation\"\u003e\r\n\u003ctd\u003e\u003ca href\u003d\"https://www.spoj.com/problems/PALDR/vn/\"\u003eVietnamese\u003c/a\u003e\u003c/td\u003e\r\n\u003ctd\u003e\u003ca href\u003d\"https://www.spoj.com/problems/PALDR/en/\"\u003eEnglish\u003c/a\u003e\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003c/tbody\u003e\r\n\u003c/table\u003e\r\n\u003cp\u003e\u003c/p\u003e\r\n\u003cp\u003ePalindrome is a string that has the property of reading the same in either direction (left to right or right to left). You are to determine whether a given string can be expressed as a concatenation of palindromes of even length.\u003c/p\u003e\r\n\u003cp\u003eNote: A string can be formed by concatenation of any number of even palindrome strings.\u003c/p\u003e\r\n\u003ch3\u003eInput\u003c/h3\u003e\r\n\u003cp\u003eFirst line contains \u003cstrong\u003eT\u003c/strong\u003e (T \u0026lt; 100), the number of test cases. \u003cstrong\u003eT\u003c/strong\u003e lines follow, each containing the string corresponding to that particular test case.\u003c/p\u003e\r\n\u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e\u003c/p\u003e\r\n\u003cp\u003eThere might be a new-line character (i.e. \u0027\\r\u0027 in C++) at the end of each line. Be careful with your languages.\u003c/p\u003e\r\n\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003cp\u003eOutput consists of \u003cstrong\u003eT\u003c/strong\u003e lines, one corresponding to each test case. You should output \u003cem\u003eYES\u003c/em\u003e if the string can be expressed as concatination of even length palindromes and \u003cem\u003eNO\u003c/em\u003e otherwise.\u003c/p\u003e\r\n\u003ch3\u003eExample\u003c/h3\u003e\r\n\u003cdiv\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\r\nmadam\r\naA\r\naabb\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNO\r\nNO\r\nYES \r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\r\n\u003ch3\u003eConstraints\u003c/h3\u003e\r\n\u003cp\u003eLength of string ≤ 10\u003csup\u003e6\u003c/sup\u003e\u003c/p\u003e\r\n\u003cp\u003e\u003c/p\u003e\n\u003c/div\u003e"}}]}