求助只有50分

P1909 [NOIP2016 普及组] 买铅笔

@[Y202212904340](/user/811285) > `else if(n/b!=0)`
by 阿丑 @ 2022-10-27 13:56:36


@[阿丑](/user/364963) 什么意思?
by Y202212904340 @ 2022-10-27 22:52:58


@[Y202212904340](/user/811285) ```cpp else if(n/b!=0) {S2==(n/b+1)*B; } ``` $\to$ ```cpp else if(n%b!=0) {S2==(n/b+1)*B; } ```
by 阿丑 @ 2022-10-28 06:34:32


@[阿丑](/user/364963) 还是不行应该还是有其它的问题
by Y202212904340 @ 2022-10-29 10:26:41


@[阿丑](/user/364963) ==改成=
by wangchunhua @ 2022-11-01 21:01:47


@[wangchunhua](/user/844132) 可以过了
by Y202212904340 @ 2022-11-04 22:47:37


|