摘要:
Colored SticksTime Limit:5000MSMemory Limit:128000KTotal Submissions:23116Accepted:6095DescriptionYou 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 阅读全文