zoj3675,Trim the Nails,BFS+二进制状态压缩