<filename>codeforces.com/1372A/solution.py
for i in range(int(input())):
    n = int(input())
    print(' '.join(['1'] * n))

<filename>codeforces.com/1372A/solution.py
for i in range(int(input())):
    n = int(input())
    print(' '.join(['1'] * n))
