#t255. 大整数的因子
大整数的因子
Factors of a Large Integer
Problem Background
Special for beginners, ^_^
Problem Description
Given a positive integer satisfying , and a non-negative decimal integer whose length is at most digits, find all values of that divide .
Input Format
One line containing a non-negative integer , where the number of digits of is at most .
Output Format
If there exists a such that c % k == 0, output all such in increasing order, separated by a single space. If no such exists, output none.
Sample Input
30
Sample Output
2 3 5 6
Constraints
Time limit: 1s, memory limit: 1024KiB for each test case.