{"trustable":false,"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":"PLAIN","content":"Cho dãy A có N phần tử.\nQ truy vấn dạng T_i, X_i, Y_i:\n\nNếu T_i \u003d 1, thay số ở vị trí thứ x_i thành A_xi ^ y_i\nNếu T_i \u003d 2, In ra xor các số từ vị trí x_i đến y_i\n\nThực hiện toàn bộ truy vấn lần lượt."}},{"title":"Constraints","value":{"format":"PLAIN","content":"N, Q \u003c\u003d 300000\nA_i \u003c 2^30"}},{"title":"Input","value":{"format":"PLAIN","content":"N Q\nA_1 ... A_N\nT_1 X_1 Y_1\n...\nT_N X_N Y_N"}},{"title":"Output","value":{"format":"PLAIN","content":"Với mỗi dòng T_i \u003d 2, in ra đáp án khi ấy"}},{"title":"Sample Input 1","value":{"format":"PLAIN","content":"3 4\n1 2 3\n2 1 3\n2 2 3\n1 2 3\n2 2 3\n"}},{"title":"Sample Output 1","value":{"format":"PLAIN","content":"0\n1\n2\n"}},{"title":"Sample Input 2","value":{"format":"PLAIN","content":"10 10\n0 5 3 4 7 0 0 0 1 0\n1 10 7\n2 8 9\n2 3 6\n2 1 6\n2 1 10\n1 9 4\n1 6 1\n1 6 3\n1 1 7\n2 3 5\n"}},{"title":"Sample Output 2","value":{"format":"PLAIN","content":"1\n0\n5\n3\n0\n"}}]}