更深層次的DFS 解決POJ 2362
摘要:
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, the number of test cases. Each test case begins with an integer 4 <= M <= 20, the number of sticks. M integers follow; each gives the length of 閱讀全文
posted @ 2011-09-07 08:35 More study needed. 閱讀(250) 評論(0) 推薦(0)
浙公網安備 33010602011771號