here is the link to the ide
problem statement is also written in ide
Step-wise-modulo-doubt
@ankitkumarmbill1 modulo is distributive over addition.
here we are just taking step wise modulo as first take modulo of a and b then take modulo of there addition (just in case if there addition exceed n) and so on.
ok thank u i understood
1 Like