AR2MAX - Nhap Mang Va Tim Max

no tags 

Allow the user to enter the size of the array n × m, then enter the value of each element in the array. Find and print the maximum value.

Input

n m

pt00 pt01 ....

pt10 pt11 ....

Output

The maximum value from the array

Example

Input:
2 3
1 2 3
4 5 6 Output: 6

hide comments
mr_geeksman: 2021-04-01 10:08:45

Find maximum element in the matrix.
Input format
First line contain n and m (the dimensions)
Next n lines will contains m elements each.

Output
Find maximum element in the matrix.

Last edit: 2021-04-01 10:54:14

Added by:khanhvh
Date:2020-11-17
Time limit:1s-5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All