摘要: 题目描述 高速公路旁边有一些村庄。高速公路表示为整数轴,每个村庄的位置用单个整数坐标标识。没有两个在同样地方的村庄。两个位置之间的距离是其整数坐标差的绝对值。 邮局将建在一些,但不一定是所有的村庄中。为了建立邮局,应选择他们建造的位置,使每个村庄与其最近的邮局之间的距离总和最小。 你要编写一个程序, 阅读全文
posted @ 2020-01-30 20:08 Z-Y-Y-S 阅读(373) 评论(1) 推荐(0) 编辑
摘要: 题目描述 Progressive climate change has forced the Byteburg authorities to build a huge lightning conductor that would protect all the buildings within th 阅读全文
posted @ 2020-01-30 17:02 Z-Y-Y-S 阅读(378) 评论(1) 推荐(0) 编辑