Column sum - ReimuOJ: Reimu Online Judge

Column sum

Time limit: 1000 ms
Memory limit: 256 MB
You are given a 2D array A with n rows and m columns. For each column, calculate its sum. ### Input - The first line contains 2 integers n,m. - Next n lines, each line contains m integers of A. ### Output - Print m integers, ith integers is the sum of ith column. ### Constraints - 1≤n,m≤100. - |Ai,j|≤100. ### Example Input: 341-2324-590332-2 Output: 8-4140