Given 2 numbers a and b, what is the maximum number which can not be formed using n*a + m*b

this problem is now in Codechef contest , delet your comment .

Oops! Didnâ€™t knew it was a contest question. Deleted my answer!

1 Like

you are not allowed to ask/discuss anything related to live contest problems

Btw, now I solved that problem!!