Pro.ID22097 TitleGlobetrotter Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22097 AC0 Submit11 Ratio0.00% 时间&空间限制描述As a member of an ACM programming team you'll soon find yourself always traveling around the world: Zürich, Philadelphia, San José, Atlanta,... from 1999 on the Contest Finals even will be on a different continent each year, so one day you might get to Japan or Australia. 输入The input will consist of two parts: a list of cities and a list of queries. 输出Description As a member of an ACM programming team you'll soon find yourself always traveling around the world: Zürich, Philadelphia, San José, Atlanta,... from 1999 on the Contest Finals even will be on a different continent each year, so one day you might get to Japan or Australia. Input The input will consist of two parts: a list of cities and a list of queries. Output For each query, print a line saying "A - B" where A and B are replaced by the city names. Then print a line saying x km" where x is replaced by the geographical distance (in km) between the two cities, rounded to the nearest integer. If one of the cities in the query didn't occur in the city list, print a line saying "Unknown" instead. Sample Input Ulm 48.700 10.500 Sample Output Ulm - Philadelphia Source 样例输入Ulm 48.700 10.500 样例输出Ulm - Philadelphia 作者 |