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
|
Для отправки решений необходимо выполнить вход.
|