import sys grid = [[0] * 10] for s in sys.stdin: grid.append([0] + list(map(int, s.split(" ")))) # rows[i][j]表示第i行是否已使用数字j rows = [[False] * 10 for _ in range(10)] # cols[i][j]表示第i列是否已使用数字j cols = [[False] * 10 for _ in range(10)] # blks[i][j]表示第i个小正方形块是否已使用数字j blks = [[False] * 10 for _ in ran...