Problem Statement
Write a program to search for a specific value K in an N x M matrix. The input format is Rows Cols, then the matrix, followed by K. Print YES if found, otherwise NO.
DEMO-C-32 โข Programming in C
Write a program to search for a specific value K in an N x M matrix. The input format is Rows Cols, then the matrix, followed by K. Print YES if found, otherwise NO.
Input: Dimensions N M followed by the matrix elements.
Output: The formatted result as specified.
Submit runs every public testcase in this browser. Results and code never leave this device.
3 4 34 -1 6 34 -2 6 3 40 1 19 13 14 2
NO
2 3 24 -9 34 -7 -4 27 8
NO
2 3 14 49 -2 -4 22 24 7
NO
2 3 24 38 13 20 32 27 9
NO
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question