因为`(p - p / i) * inv[p % i]`可能会爆int,不开long long可能会溢出。
@[BCZSX](/space/show?uid=126669)
by xsI666 @ 2019-05-04 15:19:37
@[BCZSX](/space/show?uid=126669) 爆精度了吧 ...
by aminoas @ 2019-05-04 15:20:11
~~#define int long long搞定一切~~
by aminoas @ 2019-05-04 15:21:19
好的,谢谢大佬 @[xsl666](/space/show?uid=70581) @[QwQ自动机](/space/show?uid=143834)
by BCZSX @ 2019-05-04 15:22:34
@[QwQ自动机](/space/show?uid=143834) 会CE的
by PRXOR @ 2019-05-04 15:39:54
@[PRXOR](/space/show?uid=165676) 在定义main()函数前加一句
#undef int
就不会
by aminoas @ 2019-05-04 15:41:16
@[QwQ自动机](/space/show?uid=143834) 直接改成 signed main() 就好..
by Nicoppa @ 2019-05-04 15:45:06
@[HaloCat](/space/show?uid=206319) ~~反正差不多~~
by aminoas @ 2019-05-04 15:45:54