大佬们求助啊!为什么停止工作了?

P1162 填涂颜色

一般是越界。 另外,您这扩展写得……不敢恭维啊…… 建议定义一个work[8][2]{{0,1},{0,-1}……来扩展。
by x义x @ 2018-06-01 18:35:52


@[x義x](/space/show?uid=58567) 问题是我为什么越界了?
by si_zhong @ 2018-06-01 18:40:32


可能您map数组开小了?
by henry_y @ 2018-06-01 19:13:37


@[henry_y](/space/show?uid=36526) 我试过了,开大了也没用。
by si_zhong @ 2018-06-01 19:14:35


if(b[q[h].x][q[h].y-1]==0&&ma[q[h].x][q[h].y-1]==0) push(q[h].x,q[h].y-1); 您确定您判断边界了?
by tocek_shiki @ 2018-06-01 19:24:11


如果q[h].y=0?
by tocek_shiki @ 2018-06-01 19:24:40


@[fff团666](/space/show?uid=49562) 这题为什么要判边界?不是围了一层1吗?
by si_zhong @ 2018-06-01 19:49:12


@[蒟蒻chi_chi](/space/show?uid=31728) 就知道,我这么菜,误导dalao您了 抱歉抱歉 题我没做过 大致看了一下 ~~主要是代码风和我不像~~
by tocek_shiki @ 2018-06-01 20:00:45


|