LearnPy Hub
← Arena
EasyRating 900

Column Totals

Print the sum of each column of the grid.

Input

r and c, then r rows.

Output

c integers.

Sample 1

Input
2 3
1 2 3
4 5 6
Output
5 7 9

Sample 2

Input
1 1
7
Output
7
solution.py
Output appears here
Column Totals · Python Arena problem · LearnPy Hub