Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Divisors - MarisaOJ: Marisa Online Judge
Divisors
Time limit: 1000 ms
Memory limit: 256 MB
Find all positive divisors of a given integer
n
n
. ### Input - A single line contains an integer
n
n
. ### Output - Print all positive divisors of
n
n
, in ascending order. ### Constraints -
1
≤
n
≤
10
6
1
≤
n
≤
10
6
. ### Example Input:
12
12
Output:
1
2
3
4
6
12
1
2
3
4
6
12
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating
800
Solution (0)
Solution