鸭蛋分满江红求助dalao神犇!

P1865 A % B Problem

没想到吧,$l$ 可以小于 $1$!
by hhoppitree @ 2023-05-09 13:34:25


@[Harry_Haiyun](/user/977778)
by hhoppitree @ 2023-05-09 13:34:58


@[hhoppitree](/user/183609) **[云剪贴板](https://www.luogu.com.cn/paste/sy65qe2i)** 为什么有TLE也有WA?
by __Harry_Haiyun__ @ 2023-07-06 17:59:29


因为判质数时 $i$ 在增加的过程中可能会从 $2^{31}-1$ 回滚到小的数,而这是 $\texttt{UB}$。@[Harry_Haiyun](/user/977778)
by hhoppitree @ 2023-07-07 11:13:27


|