摘要: 1014. Waiting in Line (30) 阅读全文
posted @ 2013-10-04 22:26 coding_monkey 阅读(212) 评论(0) 推荐(0) 编辑
摘要: PAT1004 阅读全文
posted @ 2013-10-04 13:33 coding_monkey 阅读(388) 评论(0) 推荐(0) 编辑
摘要: PAT1003 阅读全文
posted @ 2013-10-04 13:16 coding_monkey 阅读(235) 评论(0) 推荐(0) 编辑
摘要: It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need to repair any other highways to keep the rest of the cities connected. Given the map of cities which have all the remaining highways marked, you are supposed to tell the number of highways need to be repaired, quickly. For example, if we have 3 cities and 2 highways connecting city1-city2 and c 阅读全文
posted @ 2013-10-04 13:05 coding_monkey 阅读(223) 评论(0) 推荐(0) 编辑