1628: 869. 试除法求约数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:73 Solved:10

Description

给定 n 个正整数 ai,对于每个整数 ai,请你按照从小到大的顺序输出它的所有约数。


暴力会 Time Limit Exceeded

Input

第一行包含整数 n。

接下来 n 行,每行包含一个整数 ai。

Output

输出共 n 行,其中第 i 行输出第 i 个整数 ai 的所有约数。

数据范围

1≤n≤100,
1≤ai≤2×10^9


Sample Input Copy

2
6
8

Sample Output Copy

1 2 3 6 
1 2 4 8 

Source/Category