Given a natural number M and Q queries specified by a type T and an integer R, answer: if T=1, count numbers dividing both M and R; if T=2, count numbers dividing M and multiple of R; if T=3, count…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.