{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"MD","content":"给一个平面\n支持3种操作\n1 r1, c1, r2, c2插入一个矩阵 矩阵左上角为(r1,c1) 右下角为(r2,c2)\n2 r1, c1, r2, c2删除一个矩阵,保证存在\n3 r1, c1, r2, c2询问(r1,c1)能否到达(r2,c2)(不跨过矩阵)"}},{"title":"Input","value":{"format":"MD","content":"n,m,表示平面大小 q表示操作个数\n接下来q行,每行一个操作\nn,m\u003c\u003d2500 q\u003c\u003d100000\n(水平较高选手可以尝试n,m\u003c\u003d100000的方法)"}},{"title":"Output","value":{"format":"MD","content":"对于每一个询问,可以到达输出\"Yes\" 否则 \"No\""}},{"title":"Example","value":{"format":"MD","content":"输入\n5 6 5\n1 2 2 4 5\n1 3 3 3 3\n3 4 4 1 1\n2 2 2 4 5\n3 1 1 4 4\n输出\nNo\nYes"}},{"title":"Note","value":{"format":"MD","content":"\u003cdiv class\u003d\"note\"\u003e\n \u003cdiv class\u003d\"section-title\"Note/div\u003e\n \u003cp\u003e样例解释\n \u003ccenter\u003e \n \u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/26d979a751951c6cc2cba2d1b418875d?v\u003d1520765197\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\" SRC\u003d\"CDN_BASE_URL/26d979a751951c6cc2cba2d1b418875d?v\u003d1520765197\"\u003e \n \u003c/center\u003e\n\u003c/div\u003e"}},{"title":"提示","value":{"format":"MD","content":"可以考虑对每一个矩阵随机一个权值"}}]}