-
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列...
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列室之外,还可以监视与它所在的陈列室相邻的上,下,左,右4个陈列室。
2.要求
试要求,设计一个安排警卫机器人哨位的算法,使得名画陈列馆的每个陈列室都在警卫机器人监视之下,切所用的警卫机器人数目最少。
3.结果输出
将计算的警卫机器人数及其最佳哨位安排输出到文件output.txt。文件的第1行是警卫机器人数;接下来的m行中每行n个数,0表示无哨位,1表示哨位。-Gallery problem:
1. Problem Description
Painting gallery in the world there are m* n composed of a showroom. In order to prevent the paintings stolen, you need to set the security robot sentinel showroom, each algorithm is a security robot in addition to monitor it in the showroom, you can also watch it in the showroom with the adjacent upper and lower, left, Right 4 showrooms.
2. Demand
Test requirements, design an arrangement guard robot sentinel algorithm, making paintings in each gallery showroom are under the surveillance of the security robot, cutting the number of robots used by security guards at least.
3. The resulting output
Will calculate the number of security robots and the best sentinel ar
- 2022-06-27 18:30:39下载
- 积分:1
-
Nano2410A V2.0用户手册 Nano2410A V2.0用户手册
Nano2410A V2.0用户手册 Nano2410A V2.0用户手册-Nano2410A V2.0 user manual Na no2410A V2.0 user manual Nan o2410 A user manual V2.0
- 2022-06-19 09:48:30下载
- 积分:1
-
快捷方式一个 快捷方式一个
快捷方式一个 快捷方式一个-shortcuts a shortcut to a shortcut to a
- 2022-03-24 05:56:25下载
- 积分:1
-
电力系统可用于短
可用于电力系统短期负荷预测的RBF神经网络程序-Power system can be used for short-term load forecasting procedures of the RBF neural network
- 2022-03-25 15:27:46下载
- 积分:1
-
PLC例程大合集
应用背景可编程逻辑控制器,它采用一类可编程的存储器,用于其内部存储程序,执行逻辑运算、顺序控制、定时、计数与算术操作等面向用户的指令,并通过数字或模拟式输入/输出控制各种类型的机械或生产过程。关键技术PLC的用户程序可以在实验室模拟调试,输入信号用小开关来模拟,通过PLC上的发光二极管可观察输出信号的状态。完成了系统的安装和接线后,在现场的统调过程中发现的问题一般通过修改程序就可以解决,系统的调试时间比继电器系统少得多。这里包含了12个典型例程,可直接调试运行。
- 2022-03-20 22:06:20下载
- 积分:1
-
最好的汇编语言开发工具,优化代码生成
最好的汇编语言开发工具,优化代码生成...
最好的汇编语言开发工具,优化代码生成
最好的汇编语言开发工具,优化代码生成-Best assembly language development tools, optimization of code generation the best assembly language development tools, optimization of code generation
- 2022-03-18 03:08:52下载
- 积分:1
-
JCL样品
jcl samples
- 2022-01-21 22:18:32下载
- 积分:1
-
实验数据结构,实现矩阵乘法加法和素…
数据结构实验,实现矩阵的加减乘运算,是cpp源文件文件-Experimental data structure to achieve the matrix multiplication addition and subtraction is a cpp source files
- 2022-12-31 05:00:03下载
- 积分:1
-
通讯录.基于C++编写
通讯录.基于C++编写- Address book Compiles based on C
- 2022-01-22 03:37:37下载
- 积分:1
-
地震资料处理时计算二维测线交点的程序,有弯线也能用
地震资料处理时计算二维测线交点的程序,有弯线也能用-seismic data processing, calculate 2-D lines of the intersection of procedures, it also can be used curved lines
- 2023-05-28 09:20:03下载
- 积分:1