HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


51193 - The max element of k-th column

Section problems

• 50592 - Matrix Multiplication
• 50594 - Transformations
• 50606 - Long product
• 50607 - Long sum
• 50611 - Maximum of the minima
• 50616 - Snake
• 50647 - Spiral
• 51182 - Count and Sum 2
• 51193 - The max element of k-t...
• 51194 - The difference between max...
• 51196 - The sum of two arrays
• 51197 - Even and odd Numbers
• 50543 - Hotel rooms
• 50468 - Draw Matrix - 2

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
bfs.

The max element of k-th column.

 

Find the biggest element in the k-th column. .

Input specification
In the first line you will be given three integer numbers, n, m and k. Where n and m are the dimensions of the matrix and k denotes the column. 0<n,m<= 100 and k>=m.

Then you will have a matrix size of nxm. All elements of the matrix are between -10000 and 10000. 

Output specification
Sow the largest number for given column.

Sample Input I 
4 4 2
9 26 16 1
-7 -8 65 57
61 3 28 33
18 60 64 27

Sample Input II
3 4 3
26 29 -7 40
16 35 27 -2
49 40 39 59

Sample Output I
60

Sample Output II
39

 

Для отправки решений необходимо выполнить вход.

www.contester.ru