请检查你的块长计算是否正确。
如果你的块长取成 nt3\sqrt[3]{nt}3nt,计算的时候 ttt 可能为 0,还有一点就是 ntntnt 乘起来可能爆 longlong
具体如下:
block=cbrt(1ll*n*max(cn, 1));