题解 | 完美异或
完美异或
https://www.nowcoder.com/practice/df2d0b1e250b4995a7cda77bf1065cf1
for i in range(int(input())):
n = int(input())
if n % 2 == 0:
print('0 '*(n-1),end='')
print(n)
else:
print(f'{n} '*(n))
完美异或
https://www.nowcoder.com/practice/df2d0b1e250b4995a7cda77bf1065cf1
for i in range(int(input())):
n = int(input())
if n % 2 == 0:
print('0 '*(n-1),end='')
print(n)
else:
print(f'{n} '*(n))
相关推荐