Author: | A. Klenin | Time limit: | 1 sec | |
Input file: | input.txt | Memory limit: | 256 Mb | |
Output file: | output.txt |
Let's call an integer number elite if it is divisible by every digit of its decimal representation.
Given an integer x, your program must find the smallest elite number greater than or equal to x.
Input file contains the integer x.
Output file must contain a single integer — the smallest elite number.
1 ≤ x ≤ 1010
No. | Input file (input.txt ) |
Output file (output.txt ) |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|