PAT--Saving James Bond - Hard Version

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/grooowing/article/details/45064563

这题算是经典BFS了,不贴代码,只说两件事。

用例四没过说明,“If there are many shortest paths, just output the one with the minimum first jump, which is guaranteed to be unique.”这句话你没看到。。

额,我看到了,但是我以为是下标最小,事实上是第一只鳄鱼距离出发点最近的那个。。。

用例五没过说明,额,007能够不借助鳄鱼直接跳到岸上的情况你没考虑,汗。。。。。这个。。


猜你喜欢

转载自blog.csdn.net/grooowing/article/details/45064563