• + 5 comments

    It may Possible that

    m%n+(s-1) > n ..... that's why you cant use it

    Try this:

    n=5 m=3 s=5

    (3%5)+(5-1)=7 .. it is not posiible as n is 5 only