input:
3 3 2 3 4 0 1 0 0 0 0
output:
7
原因:在没有找到灌木之前,贝茜不能通过骑士们所在的那个区域。
hack题解:
https://www.luogu.com.cn/blog/GamerDiaosi/solution-p5195
https://www.luogu.com.cn/blog/9355-064-28/solution-p5195
https://www.luogu.com.cn/blog/cll523067/p5195-usaco05decknights-of-ni-s-ti-xie
https://chichichichi.blog.luogu.org/p5195-usaco05decknights-of-ni-s
https://www.luogu.com.cn/blog/hf45LLR/solution-p5195
https://www.luogu.com.cn/blog/DarwinLuo/solution-p5195
https://www.luogu.com.cn/blog/Wenoide/solution-p5195
https://www.luogu.com.cn/blog/zhouhongkai/solution-p5195