coding test read data

#To be added

1. Read Matrix

Sample Input

1 1 1 0 0 0
0 1 0 0 0 0
1 1 1 0 0 0
0 0 2 4 4 0
0 0 0 2 0 0
0 0 1 2 4 0

Code

    arr = []

    for _ in range(6):
        arr.append(list(map(int, input().rstrip().split())))
        #arr.append([int(x) for x in str(input()).split(' ')])
        #arr.append(list(map(int, input().split(' '))))

Notes:

Published 128 original articles · won praise 90 · views 4873

Guess you like

Origin blog.csdn.net/weixin_45405128/article/details/103926040