n = int(input())
k1 = int(input())
k2 = int(input())
arr = [[i] * n for i in range(n)]
arr[k1], arr[k2] = arr[k2], arr[k1]
for row in arr:
print(*row)
Объяснение:
n = int(input())
k1 = int(input())
k2 = int(input())
arr = [[i] * n for i in range(n)]
arr[k1], arr[k2] = arr[k2], arr[k1]
for row in arr:
print(*row)
Объяснение: