{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e 九叶国由N个城市组成。每个城市可以被视为二维平面上的一个点,其坐标为整数(x,y)。城市i和城市j之间的距离定义为d\u003csub\u003eij\u003c/sub\u003e \u003d |x\u003csub\u003ei\u003c/sub\u003e - x\u003csub\u003ej\u003c/sub\u003e| + |y\u003csub\u003ei\u003c/sub\u003e - y\u003csub\u003ej\u003c/sub\u003e|。九叶想在N个城市中选择K个城市建立机场。因此他需要你的帮助来选择这K个城市,以使每个城市到最近机场的最大距离最小化。也就是说,如果我们将d\u003csub\u003ei\u003c/sub\u003e(1 ≤ i ≤ N )定义为城市i到最近机场的距离。你的目标是将max{d\u003csub\u003ei\u003c/sub\u003e|1 ≤ i ≤ N }的值最小化。你只需输出最小值。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"输入的第一行是T(1 ≤ T ≤ 100),表示你需要解决的测试用例数。\u003cbr\u003e\u003cbr\u003e 每个案例的第一行包含两个整数N,K(1 ≤ N ≤ 60,1 ≤ K ≤ N),如上所述。\u003cbr\u003e\u003cbr\u003e 接下来的N行,每行包含两个整数x\u003csub\u003ei\u003c/sub\u003e和y\u003csub\u003ei\u003c/sub\u003e(-10\u003csup\u003e9\u003c/sup\u003e ≤ x\u003csub\u003ei\u003c/sub\u003e, y\u003csub\u003ei\u003c/sub\u003e ≤ 10\u003csup\u003e9\u003c/sup\u003e),表示城市i的坐标。"}},{"title":"输出","value":{"format":"HTML","content":"对于每个测试用例,首先打印一行“Case #t: ”(不包括引号,t表示测试用例的索引)。然后输出一个整数表示最小值。"}},{"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\u003e2\r\n3 2\r\n0 0\r\n4 0\r\n5 1\r\n4 2\r\n0 3\r\n1 0\r\n3 0\r\n8 9\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: 2\r\nCase #2: 4\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}