Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
2.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Write a program that takes an integer ~n~ as input (where ~n≤10^7~). Print all divisors of ~n~.
Divisors of ~n~ are integers that divide ~n~ without a remainder.
Example: For ~n=10~, print the divisors: ~1~, ~2~, ~5~, ~10~.
Input
- One integer number ~n~ ~(n ≤ 10^{7})~.
Output
- Print all divisors of ~n~ .
Sample Input
10
Sample Output
1 2 5 10
Bình luận