Question: INPUT Your program will be tested on one or more test cases. The first line of the input will be a single integer T ,
INPUT
Your program will be tested on one or more test cases. The first line of the input will be a single integer
the number of test cases After that follow the specifications of test cases. Each test case
starts with a line containing integers separated by a single space N M
representing the dimensions of the matrix A followed by lines containing M integers separated by
spaces. The th number in the th line is the number in the cell in the matrix Followed by a line
contains integers separated by a single space N M representing the
dimensions of the matrix followed by lines contains M integers separated by spaces. The th
number in the th line is the number in the cell in the matrix Followed by a line containing an integer
the number of queries, followed by lines, each line contains a single query of the previously defined.
OUTPUT
For each test case print the test case number, then print the result of each query. The output must not
contain empty lines between the cases.
NOTE:
it is guaranteed that all queries can be performed on the given matrices, so you do not have to check it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
