ny_Dacong @ 2024-12-10 20:22:13
检查你计算总块数的部分。是 \lceil \frac{n}{blocklen} \rceil!一定记得上取整!对应到代码上,是 btot = (n+blocklen-1)/blocklen!
btot = (n+blocklen-1)/blocklen