题面
输入
1 | 8 8 3 |
输出
1 | 11 |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
思路 怎么搜dfs(已经复原几根木棍k,上一个木棍的下标last,当前复原木棒的进度s).
Dijkstra求最短路