Largest in each column
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
You are given a two-dimensional array of size n * m. Find the largest element in each column.
Input
The first line contains two numbers n and m - the number of rows and columns, respectively. Then n lines of m numbers are given - the elements of array.
All numbers do not exceed 100 by absolute value.
Output
Print m numbers in one line - the answer to the problem.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 48%