摘要: PAT1024 阅读全文
posted @ 2013-10-12 13:03 coding_monkey 阅读(209) 评论(0) 推荐(0) 编辑
摘要: PAT1020 阅读全文
posted @ 2013-10-08 19:51 coding_monkey 阅读(153) 评论(0) 推荐(0) 编辑
摘要: PAT1018 阅读全文
posted @ 2013-10-07 19:15 coding_monkey 阅读(344) 评论(0) 推荐(0) 编辑
摘要: PAT1017 阅读全文
posted @ 2013-10-06 12:55 coding_monkey 阅读(273) 评论(0) 推荐(0) 编辑
摘要: PAT1016 阅读全文
posted @ 2013-10-05 12:49 coding_monkey 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - English. At the mean time, we encourage students by emphasizing on their best ranks -- that is, among the four ranks with respect to the three courses and the average grade, we print the best rank for each student. For example, The grades of C, M, E and A - Average of 4 students are given as the fol 阅读全文
posted @ 2013-10-02 18:54 coding_monkey 阅读(222) 评论(0) 推荐(0) 编辑