警示后人(如果你80pts)

P1434 [SHOI2002] 滑雪

Side_sdtkwxt @ 2023-08-16 10:25:56

80pts & WA on #4#6

将ans初始化为1,而不能是其他值,否则当r=c=1时,ans不会更新

80pts & RE on #2#10

对于类似

const int maxn=105;
struct QY{int r,c,v;}qy[maxn];
bool cmp(QY a,QY b){return a.v<b.v;}

的写法,应把qy[maxn]改为qy[maxn*maxn],当r*c>maxn时会数组越界


by wyf1202 @ 2023-08-17 14:36:44

data0 100 1ms 2.06MB AC

data1 100 1ms 2.06MB AC

data2 100 1ms 2.06MB AC

data3 100 1ms 2.06MB AC

data4 100 0ms 2.06MB AC

data5 100 1ms 2.06MB AC

data6 100 3ms 2.06MB AC

data7 100 1ms 2.06MB AC

data8 0 1000ms 2.06MB TLE

data9 100 0ms 2.06MB AC


by flyWang @ 2023-10-06 21:38:51

@Side_sdtkwxt

确实是这样,最少滑雪长度也得是1而不是0,我就这个点错了


by KDL_ANIPLEX @ 2024-07-09 11:01:04

爱你


|