Divisors - MarisaOJ: Marisa Online Judge

Divisors

Time limit: 1000 ms
Memory limit: 256 MB
Find all positive divisors of a given integer $n$. ### Input - A single line contains an integer $n$. ### Output - Print all positive divisors of $n$, in ascending order. ### Constraints - $1 \le n \le 10^6$. ### Example Input: ``` 12 ``` Output: ``` 1 2 3 4 6 12 ```