1282: 定义 print 函数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:94
Solved:62
Description
给定一个 $n$ 行 $m$ 列 的矩阵。
请定义一个函数,输出该矩阵,输出的具体格式见输出样例。
函数格式如下:
注意:程序必须有函数调用的过程。
请定义一个函数,输出该矩阵,输出的具体格式见输出样例。
函数格式如下:
void print (int a[][100], int n, int m)
注意:程序必须有函数调用的过程。
Input
共 $n + 1$ 行。
第一行,包含两个正整数 $n$ 和 $m$。
接下来 $n$ 行,每一行包含 $m$ 个正整数(不超过 $1000$),中间以空格隔开,表示矩阵。
第一行,包含两个正整数 $n$ 和 $m$。
接下来 $n$ 行,每一行包含 $m$ 个正整数(不超过 $1000$),中间以空格隔开,表示矩阵。
Output
输出矩阵。
Sample Input Copy
2 2
1 2
3 4
Sample Output Copy
1 2
3 4
HINT
数据范围:
$0<n,m<=100$。
$0<n,m<=100$。