All the dots in the array are 2 units apart vertically and horizontally. 阵列中的所有的点,彼此水平和垂直方向都间距2个单位。
What is the length of the longest line segment that can be drawn joining any two points in the array 阵列中连接任意2个点的最长的线段
without passing through any other point ? 不要通过任何其他的点。
点与点,相邻两点之间的距离是2.求两点连成的最长线段的长度(要求此线段中间不经过其他的点),也就是对角线所形成的线段是不符合要求的。
所以最长的是squareroot(2^2+4^2) = 2sqrt(5)
图中所有点和它的上下左右的点的距离都为2个单位。求一条连接任意两点且不穿过任何其他点的直线的最长距离。
sqrt(2^2 + 4^2) = 2sqrt(5) units
希望回答对你有帮助!
左上角到右下角,用勾股定理 根号(4^2+4^2)=5.66 units