-
今年百度之星程序设计大赛5月31日初赛的程序。
今年百度之星程序设计大赛5月31日初赛的程序。-Star program this year, Baidu Design Competition May 31 Preliminary procedure.
- 2022-07-04 19:43:43下载
- 积分:1
-
算法实现题7
算法实现题7-60 战马问题
« 问题描述:
按照国际象棋的规则,在位置(0,0)处的马可以跳到位置(1,2),(1 ,-2),(-1,2),
(-1,-2),(2,1),(2,-1),(-2,1),(-2,-1)处。战马问题中的战马具有更一般的跳跃
能力。位置(0,0)处的战马每次可以跳到k 个位置x y i k i i ( , ),1 £ £ ,中的一个位置。战
马问题要求确定给定的战马能否跳遍无限大的棋盘上的每个位置。
« 编程任务:
对于给定的战马问题中战马的跳跃能力。确定战马能否跳遍无限大棋盘上的每个位置。
« 数据输入:
由文件input.txt给出输入数据。第1 行有1个正整数k,表示位置(0,0)处的战马每
次可以跳到k个位置。接下来的k行,每行有2个整数,表示战马的跳跃位置。
« 结果输出:
将计算结果输出到文件output.txt。给定的战马能跳遍棋盘上的每个位置时输出“Yes”,
否则输出“No”。
输入文件示例 输出文件示例
input.txt output.txt
3
1 0
0 1
-2 -1
Yes
- 2022-01-27 16:50:13下载
- 积分:1
-
将经纬度坐标转换为KML文件,很好用!
经度、纬度、大地高转KML代码,VS2012中测试通过,用Google Earth加载没有问题。
- 2022-02-15 15:46:28下载
- 积分:1
-
C语言工具集合,集成了超多C语言的工具源代码,像一些库函数的实现...
C语言工具集合,集成了超多C语言的工具源代码,像一些库函数的实现-C language tools to gather more integrated C-language source code for a tool, as some of the library functions to achieve
- 2022-02-05 10:08:46下载
- 积分:1
-
c program
c program
- 2022-02-10 11:03:40下载
- 积分:1
-
Loads an 3d object from Gmax or 3d studio max into opengl Loads an 3d object fro...
Loads an 3d object from Gmax or 3d studio max into opengl Loads an 3d object from Gmax or 3d studio max into opengl
Loads an 3d object from Gmax or 3d studio max into opengl-Loads an 3d object from Gmax or 3d studio max into opengl Loads an 3d object from Gmax or 3d studio max into opengl
Loads an 3d object from Gmax or 3d studio max into opengl
Loads an 3d object from Gmax or 3d studio max into opengl
- 2022-03-23 06:37:18下载
- 积分:1
-
This function places one keystroke at the head or tail of the BIOS type
This function places one keystroke at the head or tail of the BIOS type-ahead buffer if there is room for it.
- 2022-09-25 06:00:02下载
- 积分:1
-
打开、关闭cdrom的控制程序
打开、关闭cdrom的控制程序-opened, the closure of the control procedures cdrom
- 2022-10-20 20:10:04下载
- 积分:1
-
RC500 DEMO source code examples of the upper plate compression packages.
RC500 DEMO 上位板 的源程序实例压缩包。-RC500 DEMO source code examples of the upper plate compression packages.
- 2022-02-01 07:28:29下载
- 积分:1
-
matlab下实现裂纹识别
图11是原图,可得到是预处理之后的二值化化图像,可以看出图中主要有三条裂纹,应用此代码可以检测出图中存在的裂纹,并进行标记。主要工作为应用数字图像处理技术对裂缝图像进行实时 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-06 15:01:31下载
- 积分:1