debug - c++ 这个算法哪里有问题? 关于流感传染
大家讲道理
大家讲道理 2017-04-17 13:20:35
0
2
554
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
大家讲道理

After a cursory glance, j and k both start from 0, so [j-1][k] and [j][k-1] will fail

Ty80

Try using a queue, breadth-first traversal, there are obviously some problems with using a for loop, for example, if you take m=1, you don’t look at the code carefully...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!