Problem Description

Given r and c and the matrix values, print the minimum value.

Input Format

First r c. Next r*c integers.

Output Format

One integer minimum.

Sample Test Case

Input:
2 3 5 2 8 9 -1 4
Output:
-1

Constraints

r*c

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next