Introduction - If you have any usage issues, please Google them yourself
Algorithm design. The siting of a simple post office.- In an east-west and north-south direction in accordance with the divided into regular city blocks, n distribution of settlements scattered in different neighborhoods in. With east-west coordinates x, y coordinates with north-south. The location of the settlements by the coordinates (x, y) said. Arbitrary blocks 2:00 (x1, y1) and (x2, y2) can use the distance between the values | x1-x2 |+ | Y1-y2 | metrics. Residents hope that in the cities to choose the best position to establish the post office, so that n settlements to the sum of the smallest distance from the post office. Programming tasks: n given the location of settlements, programming calculation n settlements to the post office the sum of the minimum distance.
Packet : 1985510postofficelocation.rar filelist
C2 -- 邮局选地址.files\goback.jpg
C2 -- 邮局选地址.files\home.jpg
C2 -- 邮局选地址.files\table_back.jpg
C2 -- 邮局选地址.files\top.jpg
C2 -- 邮局选地址.files
[C2].PostofficeLocation.cpp
C2 -- 邮局选地址.htm