HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


51193 - The max element of k-th column

Section problems

• 50994 - The Most Crowded Station
• 51118 - Place 7 to the 5th position
• 51132 - Problem Solving Competition
• 51121 - Complexity power of a nu...
• 51119 - Evaluating Prefix expressions
• 50563 - Long Modulus
• 50594 - Transformations
• 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
• 50468 - Draw Matrix - 2
• 50423 - Numbers square
• 50344 - Profit or Loss
• 50445 - Cryptography
• 50410 - Zero Padding

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