{"trustable":true,"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":"HTML","content":"\u003cp\u003e你和你的朋友住在$$$n$$$座房子里。每座房子都位于二维平面上,具有整数坐标。同一坐标点可能有不同的房子。市长要求你找到建造东部展览的地点。你需要找到使所有房子到展览地点的距离总和最小的地点(具有整数坐标)。展览可以建在某座房子的位置上。两点之间的距离$$$(x_1, y_1)$$$和$$$(x_2, y_2)$$$为$$$|x_1 - x_2| + |y_1 - y_2|$$$,其中$$$|x|$$$是$$$x$$$的绝对值。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$t$$$$$$(1 \\leq t \\leq 1000)$$$—测试用例的数量。\u003c/p\u003e\u003cp\u003e每个测试用例的第一行包含一个整数$$$n$$$$$$(1 \\leq n \\leq 1000)$$$。接下来$$$n$$$行描述了房子的位置$$$(x_i, y_i)$$$$$$(0 \\leq x_i, y_i \\leq 10^9)$$$。\u003c/p\u003e\u003cp\u003e保证所有$$$n$$$的总和不超过$$$1000$$$。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,输出一个整数 - 展览的不同位置数量。展览可以建在某座房子的位置上。\u003c/p\u003e"}},{"title":"示例","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\u003e6\n3\n0 0\n2 0\n1 2\n4\n1 0\n0 2\n2 3\n3 1\n4\n0 0\n0 1\n1 0\n1 1\n2\n0 0\n1 1\n2\n0 0\n2 0\n2\n0 0\n0 0\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\n4\n4\n4\n3\n1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"注意","value":{"format":"HTML","content":"\u003cp\u003e这里是示例测试用例的图片。蓝点代表房子,绿色代表展览可能的位置。\u003c/p\u003e\u003cp\u003e\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/0546d36f1a549b746baf008bd6559642?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第一个测试用例。\u003c/p\u003e\u003cp\u003e\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/c634b2abd61cc1cd8e1d6241e27090c1?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第二个测试用例。\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/96fa87bb3034f12b4f6f52cd6c836ecb?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第三个测试用例。\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/ee3cc55abcfb6b5407fceb74e0cbe1d4?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第四个测试用例。\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/0870fb58702ab5b3102ec3e1ea91a69f?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第五个测试用例。\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/7b2053e6c58b818ef8c14c927c554313?v\u003d1716194275\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e\u003cp\u003e第六个测试用例。这里两座房子都位于$$$(0, 0)$$$。\u003c/p\u003e"}}]}