求助月赛第三题

学术版

@[Sapphire6575737973](/user/176569) 不用了,我过了,谢谢
by Acfboy @ 2020-08-11 20:26:10


```cpp if((ans & now) == 0 && (an + now * LG_1[i] - LG_0[i] * now <= m)){ an += now * LG_1[i]; ans += now; } ``` 这个错误很明显。 `an`没有剪掉`LG_0[i]*now`
by Acfboy @ 2020-08-11 20:27:12


上一页 |