Pro.ID22305 TitleFactovisors Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22305 AC0 Submit0 Ratio- 时间&空间限制描述The factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n × (n-1)! (n > 0) We say that a divides b if there exists an integer k such that k × a = b 输入The input to your program consists of several lines, each containing two non-negative integers, n and m, both less than 231. 输出Description The factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n × (n-1)! (n > 0) We say that a divides b if there exists an integer k such that k × a = b Input The input to your program consists of several lines, each containing two non-negative integers, n and m, both less than 231. Output For each input line, output a line stating whether or not m divides n!, in the format shown below. Sample Input 6 9 Sample Output 9 divides 6! Source 样例输入6 9 样例输出9 divides 6! 作者 |