{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section 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\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eYou are given a string \u003cvar\u003e\\(S\\)\u003c/var\u003e of length \u003cvar\u003e\\(N\\)\u003c/var\u003e consisting of lowercase English letters.\u003cbr\u003e\r\nProcess \u003cvar\u003e\\(Q\\)\u003c/var\u003e queries described below in the order they are given.\u003cbr\u003e\r\nThere are two types of queries:\u003c/p\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\u003ccode\u003e1 x c\u003c/code\u003e : Change the \u003cvar\u003e\\(x\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e to the lowercase English letter \u003cvar\u003e\\(c\\)\u003c/var\u003e.\u003c/li\u003e\r\n\u003cli\u003e\u003ccode\u003e2 L R\u003c/code\u003e : If the substring formed by the \u003cvar\u003e\\(L\\)\u003c/var\u003e-th through \u003cvar\u003e\\(R\\)\u003c/var\u003e-th characters of \u003cvar\u003e\\(S\\)\u003c/var\u003e is a palindrome, print \u003ccode\u003eYes\u003c/code\u003e; otherwise, print \u003ccode\u003eNo\u003c/code\u003e.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Constraints","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq N \\leq 10^6\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq Q \\leq 10^5\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(S\\)\u003c/var\u003e is a string of length \u003cvar\u003e\\(N\\)\u003c/var\u003e consisting of lowercase English letters.\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq x \\leq N\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(c\\)\u003c/var\u003e is a lowercase English letter.\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(1 \\leq L \\leq R \\leq N\\)\u003c/var\u003e\u003c/li\u003e\r\n\u003cli\u003e\u003cvar\u003e\\(N, Q, x, L, R\\)\u003c/var\u003e are integers.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Input","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eThe input is given from Standard Input in the following format. Here, \u003cvar\u003e\\(\\text{query}_i\\)\u003c/var\u003e is the \u003cvar\u003e\\(i\\)\u003c/var\u003e-th query to be processed.\u003c/p\u003e\r\n\u003cpre\u003e\u003cvar\u003e\\(N\\)\u003c/var\u003e \u003cvar\u003e\\(Q\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(S\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(\\text{query}_1\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(\\text{query}_2\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(\\vdots\\)\u003c/var\u003e\r\n\u003cvar\u003e\\(\\text{query}_Q\\)\u003c/var\u003e\r\n\u003c/pre\u003e\r\n\u003cp\u003eEach query is given in one of the following formats:\u003c/p\u003e\r\n\u003cpre\u003e\u003cvar\u003e\\(1\\)\u003c/var\u003e \u003cvar\u003e\\(x\\)\u003c/var\u003e \u003cvar\u003e\\(c\\)\u003c/var\u003e\r\n\u003c/pre\u003e\r\n\u003cpre\u003e\u003cvar\u003e\\(2\\)\u003c/var\u003e \u003cvar\u003e\\(L\\)\u003c/var\u003e \u003cvar\u003e\\(R\\)\u003c/var\u003e\r\n\u003c/pre\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Output","value":{"format":"HTML","content":"\r\n\u003csection\u003e\r\n\u003cp\u003eFollow the instructions in the problem statement and print the answers to the queries, separated by newlines.\u003c/p\u003e\r\n\u003c/section\u003e\r\n"}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\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\u003e7 8\r\nabcbacb\r\n2 1 5\r\n2 4 7\r\n2 2 2\r\n1 5 c\r\n2 1 5\r\n2 4 7\r\n1 4 c\r\n2 3 6\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYes\r\nNo\r\nYes\r\nNo\r\nYes\r\nYes\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\r\n\u003csection\u003e\r\n\r\n\u003c/section\u003e\r\n\r\n\u003csection\u003e\r\n\r\n\u003cp\u003eInitially, \u003cvar\u003e\\(S \u003d\\)\u003c/var\u003e \u003ccode\u003eabcbacb\u003c/code\u003e.\u003cbr\u003e\r\nFor the first query, the string formed by the \u003cvar\u003e\\(1\\)\u003c/var\u003e-st through \u003cvar\u003e\\(5\\)\u003c/var\u003e-th characters of \u003cvar\u003e\\(S\\)\u003c/var\u003e is \u003ccode\u003eabcba\u003c/code\u003e, which is a palindrome. Thus, print \u003ccode\u003eYes\u003c/code\u003e.\u003cbr\u003e\r\nFor the second query, the string formed by the \u003cvar\u003e\\(4\\)\u003c/var\u003e-th through \u003cvar\u003e\\(7\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e is \u003ccode\u003ebacb\u003c/code\u003e, which is not a palindrome. Thus, print \u003ccode\u003eNo\u003c/code\u003e.\u003cbr\u003e\r\nFor the third query, the string formed by the \u003cvar\u003e\\(2\\)\u003c/var\u003e-nd through \u003cvar\u003e\\(2\\)\u003c/var\u003e-nd character of \u003cvar\u003e\\(S\\)\u003c/var\u003e is \u003ccode\u003eb\u003c/code\u003e, which is a palindrome. Thus, output \u003ccode\u003eYes\u003c/code\u003e.\u003cbr\u003e\r\nFor the fourth query, change the \u003cvar\u003e\\(5\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e to \u003ccode\u003ec\u003c/code\u003e. \u003cvar\u003e\\(S\\)\u003c/var\u003e becomes \u003ccode\u003eabcbccb\u003c/code\u003e.\u003cbr\u003e\r\nFor the fifth query, the string formed by the \u003cvar\u003e\\(1\\)\u003c/var\u003e-st through \u003cvar\u003e\\(5\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e is \u003ccode\u003eabcbc\u003c/code\u003e, which is not a palindrome. Thus, output \u003ccode\u003eNo\u003c/code\u003e.\u003cbr\u003e\r\nFor the sixth query, the string formed by the \u003cvar\u003e\\(4\\)\u003c/var\u003e-th through \u003cvar\u003e\\(7\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e is \u003ccode\u003ebccb\u003c/code\u003e, which is a palindrome. Thus, output \u003ccode\u003eYes\u003c/code\u003e.\u003cbr\u003e\r\nFor the seventh query, change the \u003cvar\u003e\\(4\\)\u003c/var\u003e-th character of \u003cvar\u003e\\(S\\)\u003c/var\u003e to \u003ccode\u003ec\u003c/code\u003e. \u003cvar\u003e\\(S\\)\u003c/var\u003e becomes \u003ccode\u003eabccccb\u003c/code\u003e.\u003cbr\u003e\r\nFor the eighth query, the string formed by the \u003cvar\u003e\\(3\\)\u003c/var\u003e-rd through \u003cvar\u003e\\(6\\)\u003c/var\u003e-th character of \u003ccode\u003ecccc\u003c/code\u003e, which is a palindrome. Thus, output \u003ccode\u003eYes\u003c/code\u003e.\u003c/p\u003e\u003c/section\u003e\r\n"}}]}