-17. Column Average

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to read the number of rows () and columns () of a two-dimensional integer array first, then read the array elements row by row. Finally print the average (in integer) of every column.

Limits

Both and are no more than .

Input Format

There are lines in the input. The first line has and . Each of the next lines has integers as a row in the matrix.

Output Format

There are lines in the output. The -th line has the average of the -th column.

Sample Input

2 3
1 2 3
4 5 6

Sample Output

2
3
4

Submit

Login

Testdata Set

Download Testdata