摘要: 彩色棒时间限制:1000 ms | 内存限制:128000 KB难度:5描述You 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?输入the frist line have a number k(0<k&l 阅读全文
posted @ 2013-03-15 10:40 煮人为乐 阅读(404) 评论(0) 推荐(0)