文件名称:magic_square_matrix
-
所属分类:
- 标签属性:
- 上传时间:2014-03-02
-
文件大小:869byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
输入:
输入包括多个测试集,每行为一个正奇数N(1 <= N < 10),
0作为输入的结束且不需要处理。
输出:
对于输入的每一个N, 输出一个它所对应的N阶幻方,如果存在多个,
任意一个即可。
Sample Input
1
3
0
Sample Output
1
4 9 2
3 5 7
8 1 6
-Input:
Input includes multiple test sets, every behavior is an odd number N (1 < = N < 10),
0 as the end of the input and do not need to deal with.
Output:
For each of the N input, the output of a magic square, its corresponding N order if there are multiple,
Any one can.
The Sample Input
1
3
0
The Sample Output
1
4 September 2
3 5 7
8 1 6
输入包括多个测试集,每行为一个正奇数N(1 <= N < 10),
0作为输入的结束且不需要处理。
输出:
对于输入的每一个N, 输出一个它所对应的N阶幻方,如果存在多个,
任意一个即可。
Sample Input
1
3
0
Sample Output
1
4 9 2
3 5 7
8 1 6
-Input:
Input includes multiple test sets, every behavior is an odd number N (1 < = N < 10),
0 as the end of the input and do not need to deal with.
Output:
For each of the N input, the output of a magic square, its corresponding N order if there are multiple,
Any one can.
The Sample Input
1
3
0
The Sample Output
1
4 September 2
3 5 7
8 1 6
(系统自动生成,下载前可以参看下载内容)
下载文件列表
magic_square_matrix.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.