2012年8月25日
摘要: Problem DescriptionGiven an undirected, unweighted, connected graph, where each edge is colored either blue or red, determine whether a spanning tree with exactly k blue edges exists.InputThere will be several test cases in the input. Each test case will begin with a line with three integers:n m kWh 阅读全文
posted @ 2012-08-25 23:19 crying_Dream 阅读(511) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionTake a deck of n unique cards. Deal the entire deck out to k players in the usual way: the top card to player 1, the next to player 2, the kth to player k, the k+1st to player 1, and so on. Then pick up the cards – place player 1′s cards on top, then player 2, and so on, so that p 阅读全文
posted @ 2012-08-25 19:53 crying_Dream 阅读(423) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示