• + 0 comments

    Almost exactly the same:

    N, X = map(int, input().strip().split())
    L = []
    
    for i in range(X):
            L.append(map(float, input().strip().split()))
    
    for e in zip(*L):
            print(sum(e) / X)