Math, asked by sahanapatil3971, 1 year ago

given two positive integers n and m check if n! is divisible by m

Answers

Answered by thorlikondaarju
0
  • Given two integers n and m. The problem is to find the number closest to n and divisible by m. If there are more than one such number, then output the one having maximum absolute value. If n is completely divisible by m, then output n only. Time complexity of O(1) is required.
Similar questions