Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79521 胡海峰老师 求元素在矩阵中的位置 Python3 Wrong Answer 36 MS 3780 KB 266 2024-07-07 14:24:58

Tests(1/4):


Code:

n,x = input().split() n,x = int(n),int(x) a = [ list(map(int,input().split())) for x in range(n)] for i in range(n): f = False for j in range(n): if a[i][j] == x: f = True print(i,j) if not f : print(-1)


Run Info:

------Input------
3 2 1 4 7 2 5 8 3 6 9
------Answer-----
1 0
------Your output-----
1 0 -1