摘要:
题目大意:给你n颗珠子,每颗上面会有两种颜色,需要你把相同的颜色对接在一起,最终把所有珠子都用上,相连成为一条回路(项链)。如果可以输出项链的样子;反之,输出“some beads may be lost"。DescriptionProblem D: The NecklaceMy little si... 阅读全文
摘要:
此题较之Fire那道题而言相对简单,主要在于将不同颜色和不同方向的同一位置看作不同的点。想通这个,就可以类比一般的广搜解决此题了。DescriptionProblem A: The MonocycleA monocycle is a cycle that runs on one wheel and ... 阅读全文
摘要:
一道刘汝佳的大白书例题,这个月就搞这本书的第5章了。DescriptionProblem B: Fire!Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of th... 阅读全文