Previous Next
0 / 21
Module DEMO-32-109DEMO-C-32

Find Minimum

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program to find the minimum element in an N x M matrix.

Constraints

1 <= N, M <= 10. Integers within standard range.

Input Format

Input: Dimensions N M followed by the matrix elements.

Output Format

Output: The formatted result as specified.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
2 3
42 22 -1
47 41 24
-1
Minimum value is -1.
Sample #2
Public sample
4 2
40 -6
42 -2
23 35
19 14
-6
Minimum value is -6.
Sample #3
Public sample
2 3
13 39 10
15 0 39
0
Minimum value is 0.
Sample #4
Public sample
3 4
42 36 -10 11
-1 -7 24 49
47 37 23 8
-10
Minimum value is -10.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings