用Python递归写的,感觉没问题呀

P1002 [NOIP2002 普及组] 过河卒

我不是很懂。那个input('please input the destination :是干嘛的?
by forlight @ 2020-02-01 15:29:23


@[forlight](/user/97238) 我这个是输入终点距离和马的坐标
by Alex_Lensherr @ 2020-02-01 15:32:59


@[Alex_Lensherr](/user/214422) 删掉'please input the destination :'
by songhongyi @ 2020-02-01 15:35:02


@[forlight](/user/97238) emmmm 好像就是这个地方出了点问题,不符合他的输入规则,233333,然后有几个测试点还超时了,
by Alex_Lensherr @ 2020-02-01 15:35:24


递归似乎会TLE,可以尝试记忆化搜索或动态规划。
by Clouder @ 2020-02-01 15:35:34


@[songhongyi](/user/122079) 谢谢
by Alex_Lensherr @ 2020-02-01 15:35:40


@[Clouder](/user/220159) 好滴好滴
by Alex_Lensherr @ 2020-02-01 15:36:37


|