help plz

Pages: 123
Jun 12, 2019 at 6:23am
@Dum can you please provide some testcases? My code is giving correct answer for all the testcases posted above
Jun 12, 2019 at 7:57am
@kanken can you please give a test case?
Jun 12, 2019 at 12:19pm
closed account (SzqXLyTq)
@Dum can you please explain how you got 332...like each step....what you choose
I am getting 328
Last edited on Jun 12, 2019 at 12:24pm
Jun 13, 2019 at 6:16am
has anybody solved this yet?
Jun 13, 2019 at 7:41am
@kanken can u please tell me how to apply %mod in ingredients prob, I have solved the series but 1 task of subtask 2 is giving WA. I have been stuck on it for 2 days, its quite frustrating. Thanks in advance!!
Jun 13, 2019 at 7:46am
you can apply the modular addition property if you are using it anywhere in your prog.
(A+B)%m = ((A%m)+(B%m))%m
if you are having problems with mod then this should definitely solve it.
Jun 14, 2019 at 5:17am
@Dum please tell more corner test cases.
Last edited on Jun 15, 2019 at 6:39am
Jun 15, 2019 at 4:27am
For all those facing problem in mod,here is the link

https://www.geeksforgeeks.org/how-to-compute-mod-of-a-big-number/
Topic archived. No new replies allowed.
Pages: 123