column, row = map(int, input().split())
list1 = []
for k in range(column):
list1.append(input().split())
for i in range(row):
for j in range(column):
print(list1[j][i], end = " ")
print()
這樣測資沒問題,但送出答案時結果出現W/A(line4)
但line4就空白而已....
column, row = map(int, input().split())
list1 = []
for k in range(column):
list1.append(input().split())
for i in range(row):
for j in range(column):
print(list1[j][i], end = " ")
print()這樣測資沒問題,但送出答案時結果出現W/A(line4)
但line4就空白而已....
你有看清楚題意嗎?他有說測資檔會包含多組矩陣資料
所以你要用while True:
try:
except:
break
下次記得~加油www
column, row = map(int, input().split())
list1 = []
for k in range(column):
list1.append(input().split())
for i in range(row):
for j in range(column):
print(list1[j][i], end = " ")
print()這樣測資沒問題,但送出答案時結果出現W/A(line4)
但line4就空白而已....
你有看清楚題意嗎?他有說測資檔會包含多組矩陣資料
所以你要用while True:
try:except:
break
下次記得~加油www
看到了~~~
感恩大哥