Run ID:86278

提交时间:2024-07-24 12:28:58

T = int(input()) tmp = [] for i in range(T): a = int(input()) tmp.append(a) for i in tmp: for j in range(i): if j < i//2: print(" "*j+"X"+" "*((i//2-j)*2-1)+"X") elif j == i//2: print(" "*j+"X") else: print(" "*(i-1-j)+"X"+" "*((j-i//2)*2-1)+"X") print()