@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!!
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.