Division
来源:UVA
标签:
参考资料:
相似题目:
题目
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second is equal to an integerN , where 2 N 79. That is,
abcde/fghij=N
where each letter represents a different digit. The first digit of one of the numerals is allowed to be zero.
输入
Each line of the input file consists of a valid integerN . An input of zero is to terminate the program.
输出
Your program have to display