题解 | 矩阵元素定位

矩阵元素定位

https://www.nowcoder.com/practice/b8e6a46992fe4e11b2822b20561b6d94

n,m=map(int,input().split())
matrix=[]
for i in range (n):
    row=list(map(int,input().split()))
    matrix.append(row)
x,y=map(int,input().split())
print(matrix[x-1][y-1])

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务