摘要:
DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a straight line such that the colors of the endpoints that touch are of the same color?InputInput is a sequence of lines, each line contains two words, sep 阅读全文
posted @ 2013-09-25 15:33
forevermemory
阅读(310)
评论(0)
推荐(0)

浙公网安备 33010602011771号