Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
79522 | 胡海峰老师 | 求元素在矩阵中的位置 | Python3 | Accepted | 37 MS | 3772 KB | 259 | 2024-07-07 14:25:55 |
n,x = input().split() n,x = int(n),int(x) a = [ list(map(int,input().split())) for x in range(n)] f = False for i in range(n): for j in range(n): if a[i][j] == x: f = True print(i,j) if not f : print(-1)