Run ID:83801
提交时间:2024-07-14 22:01:50
n,i,j = map(int,input().split()) res =[] for col in range(1,5): res.append("({},{})".format(i,col)) res1 = " ".join(res) res.clear() for row in range(1,5): res.append("({},{})".format(row,j)) res2 = " ".join(res) res.clear() for x in range(1,5): for y in range(1,5): if x-y == i-j: res.append("({},{})".format(x, y)) res3 = " ".join(res) res.clear() for x in range(4,0,-1): for y in range(4,0,-1): if x+y == i+j: res.append("({},{})".format(x, y)) res4 = " ".join(res) print(res1) print(res2) print(res3) print(res4)