Problem D: 零起点学算法96——回型矩阵
Description
输出n*m的回型矩阵
Input
多组测试数据 每组输入2个整数 n和m(不大于9)
Output
输出n*m的回型矩阵,要求左上角元素是1,(每个元素占2个位置,靠右)
Sample Input
4 3
Sample Output
1 2 3
10 11 4
9 12 5
8 7 6
#include <stdio.h>
const int N = 20;
int main()
{
int n,m;
int index, i, j,c;
while(scanf("%d%d",&m,&n)!=EOF)
{
i = j = 0;
index = 1;
int arr[N]</