Problem B: 复习-多维数组练习

Problem B: 复习-多维数组练习

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

有一个大小为10 * 10 的整数矩阵 A(下标从1开始)。

输入一对坐标 i 和 j (代表第 i 行第 j 行,是 2 到 9 之间的整数)。

请输出该位置 上下左右 四个相邻坐标的值(也就是第几行第几列,

每个坐标中间用空格隔开,输出完一个坐标后需要换行

样例输入 

4 5

样例输出

3 5

5 5

4 4

4 6


#include <bits/stdc++.h>
using namespace std;
int main(){
	int i,j;
	cin >> i >> j;
	cout << ___ << " " << ___ << endl;// 上 
	cout << ___ << " " << ___ << endl;// 下 
	cout << ___ << " " << ___ << endl;// 左 
	cout << ___ << " " << ___ << endl;// 右 
}
注意:请把所有的下划线都删除干净,替换为正确的内容。

Sample Input Copy

7 8

Sample Output Copy

6 8
8 8
7 7
7 9