for i in range(int(input())):if i==0:wavehigh=int(input("\n"))else:wavehigh=int(input())waves=int(input())for i in range(waves):for j in range(1,wavehigh+1):print(str(j)*j)for j in range(wavehigh-1,0,-1):print(str(j)*j)print()這是我的程式,自己測試時沒問題,送出答案時卻錯誤
第二列是空的
for i in range(int(input())):if i==0:wavehigh=int(input("\n"))else:wavehigh=int(input())waves=int(input())for i in range(waves):for j in range(1,wavehigh+1):print(str(j)*j)for j in range(wavehigh-1,0,-1):print(str(j)*j)print()這是我的程式,自己測試時沒問題,送出答案時卻錯誤
第二列是空的
輸入的方式跟題目要求的不同