文件名称:bishops
-
所属分类:
- 标签属性:
- 上传时间:2013-01-03
-
文件大小:82.15kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
棋盘上的象
★问题描述:
国际象棋中的象在棋盘上总是沿着对角线方向移动。若两个象互相处在对方可以到达的
位置上,就可以互相攻击。
★实验任务:
现在给你两个整数 n 和 k,求出将 k 个象摆放在一个 n×n 的棋盘上,并保证它们互相不能攻击的方案数。-On the board as ★ problem descr iption: like chess on the board is always moving along the diagonal direction. If two like each other in the position of the other party can reach, you can attack each other. ★ experimental task: give you two integers n and k, obtained the k as placed on an nn chessboard, and to ensure that the number of programs that they can not attack each other.
★问题描述:
国际象棋中的象在棋盘上总是沿着对角线方向移动。若两个象互相处在对方可以到达的
位置上,就可以互相攻击。
★实验任务:
现在给你两个整数 n 和 k,求出将 k 个象摆放在一个 n×n 的棋盘上,并保证它们互相不能攻击的方案数。-On the board as ★ problem descr iption: like chess on the board is always moving along the diagonal direction. If two like each other in the position of the other party can reach, you can attack each other. ★ experimental task: give you two integers n and k, obtained the k as placed on an nn chessboard, and to ensure that the number of programs that they can not attack each other.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bishops.pdf
bishops.cpp
bishops.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.