Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85969 丁俊杰 矩阵行交换 Python3 Accepted 42 MS 3780 KB 321 2024-07-21 15:58:58

Tests(2/2):


Code:

results=[] n,m=map(int,input().split()) for x in range(5): a=list(map(int,input().split())) results.append(a) for x in range(5): results[n-1][x],results[m-1][x]=results[m-1][x],results[n-1][x] for row in range(5): for col in range(5): print(results[row][col],end=" ") print()