20分求助

P1434 [SHOI2002] 滑雪

youdu666 @ 2022-02-12 15:30:09

https://www.luogu.com.cn/record/69182876样例过不去,错误调不出来,啊啊啊


by youdu666 @ 2022-02-12 15:31:50

通过我刚刚一个下午的调试,基本确定了问题在up和S这两个函数的调用上,本身应该没问题


by _k_e_v_i_n_ @ 2022-02-12 15:44:04

@youdu666 自行bdfs


by youdu666 @ 2022-02-12 15:49:57

@_k_e_v_in 我用堆啊,我看了下,第二篇题解不也写的堆+DP吗


by _k_e_v_i_n_ @ 2022-02-12 15:50:54

@youdu666 要不试试用深搜(dfs)算法?


by lzy0415 @ 2022-02-12 15:55:18

用dfs吧


by snowy_winter @ 2022-02-26 15:46:27

先写个暴搜,能得90


|