{"trustable":false,"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":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv id\u003d\"problem-body\"\u003e \n \u003cp\u003eA palindrome is a string that has the property of reading the same in either direction (left to right or right to left). Recenly, Mr. X became facinated with palindromes. He determined that all the strings can be partitioned as a concatenation of different palindromes, which is true. But now he went a step further to say that, all the strings can be represented as a concatenation of even palindromes. Now he asked you are to determine whether a given string can be expressed as a concatenation of palindromes of even length.\u003c/p\u003e \n \u003ch3\u003eInput\u003c/h3\u003e \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. Length of string ≤ 10\u003csup\u003e6\u003c/sup\u003e\u003c/p\u003e \n \u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e\u003c/p\u003e \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 \n \u003ch3\u003eOutput\u003c/h3\u003e \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 \n \u003ch3\u003eExample\u003c/h3\u003e \n \u003cpre\u003e\u003cstrong\u003eInput:\u003c/strong\u003e\n3\nmadam\naA\naabb\n\n\u003cstrong\u003eOutput:\u003c/strong\u003e\nNO\nNO\nYES \n\u003c/pre\u003e \n \u003cp\u003e\u003c/p\u003e \n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}}]}