HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Recursion > problem:


50729 - Max number in 2D array

Guest
• Discussion of problem (1)

Section problems

• 50911 - Symmetric Array
• 50381 - Sum of the numbers
• 50389 - Reverse an Array
• 50727 - Fibonacci Numbers
• 50415 - The Scientist
• 50421 - Repairing road segments
• 50935 - Max Discount
• 50724 - Number of Circles
• 50729 - Max number in 2D array
• 51081 - Fish Pond I
• 50726 - Pascal Triangle - 1
• 50928 - War Of Battleships
• 50577 - Perfect Numbers and Perfec...
• 50721 - Palindrome

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.
Question by Ibrahim Mesecan.

Max number in 2D array

Question: You will be given 2D array of numbers. Find and show the max of it.

Input specification
You will be first given 2 integers (m, n) where m and n are between 1 and 100. Then, in the following m lines you will be given n possibly positive or nagative integers.

Output specification
Show one integer: the max of the array.

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

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

www.contester.ru