n<=31为什么会爆int啊

P2727 [USACO3.2] 01串 Stringsobits

unsigned int倒是能过
by 0Zero丶紫瞳 @ 2018-09-15 16:59:53


@[Zero丶紫瞳](/space/show?uid=57702) int的范围:2^31-1
by YZHX @ 2018-09-15 17:00:44


@[YZHX](/space/show?uid=42082) 哦!我忘了那个减一了,谢谢O_O
by 0Zero丶紫瞳 @ 2018-09-15 17:01:53


@[YZHX](/space/show?uid=42082) 题面说二进制有$31$位,最大数就是$2^{31}-1$
by 珅肐 @ 2019-07-21 09:26:28


|