목록코딩테스트 (187)
Note
a = [] for i in range(20): a.append([]) for j in range(20): a[i].append(0) for i in range(19): b = input().split() for j in range(19): a[i+1][j+1] = int(b[j]) n = int(input()) for i in range(n): x,y = map(int,input().split()) for j in range(1,20): if a[j][y] == 0: a[j][y] = 1 else: a[j][y] = 0 if a[x][j] == 0: a[x][j] = 1 else: a[x][j] = 0 for i in range(1,20): for j in range(1,20): print(a[i][j..
d = [[0 for j in range(20)] for i in range(20)] n = int(input()) for i in range(n): x,y = map(int,input().split()) d[x][y] = 1 for i in range(1,20): for j in range(1,20): print(d[i][j], end=' ') print()
n = int(input()) print(min(map(int,input().split())))
n = int(input()) a = list(map(int, input().split())) for i in range(n-1,-1,-1): print(a[i],end=' ')