#include <array>
#include <cmath>
#include <queue>
#include <sstream>
#include <stack>
#include <thread>
#include <utility>
#include <vector>
#include "AI.h"
#include "constants.h"
#define PI 3.14159265358979323846
short map[2][48][48][48][48] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,-1,24,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,-1,44,44,45,46,47,
2,2,2,3,-1,6,-1,8,8,9,10,11,12,13,14,-1,-1,18,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,-1,-1,-1,-1,-1,46,46,47,
3,3,3,3,-1,-1,-1,-1,9,9,10,11,12,13,-1,-1,-1,19,19,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,-1,-1,46,46,47,
-1,4,4,4,5,-1,-1,-1,10,10,10,-1,-1,-1,-1,-1,-1,-1,-1,20,20,-1,-1,24,24,-1,-1,-1,-1,-1,-1,32,-1,34,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
-1,5,5,5,5,6,7,8,9,10,11,12,13,14,-1,-1,-1,-1,-1,21,21,-1,-1,25,25,-1,38,37,36,35,34,33,-1,-1,-1,-1,37,-1,-1,-1,-1,-1,-1,44,44,45,46,47,
-1,6,6,6,6,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,38,37,36,35,34,34,35,36,37,38,38,39,40,41,42,43,-1,45,45,45,46,47,
8,7,7,7,7,7,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,38,37,36,36,-1,35,35,36,37,38,39,39,40,41,42,43,-1,46,46,46,46,47,
8,8,8,8,8,8,8,8,9,10,11,12,13,14,15,-1,-1,19,19,20,21,22,23,24,25,-1,38,37,37,37,37,36,36,36,37,38,39,40,40,41,42,43,-1,-1,-1,-1,-1,48,
9,9,9,-1,-1,-1,-1,-1,-1,-1,-1,13,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,-1,-1,-1,38,38,39,-1,41,41,42,43,44,44,45,46,-1,49,
10,10,10,-1,18,18,18,18,19,20,-1,14,14,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,-1,39,39,39,-1,-1,-1,-1,43,43,44,45,46,-1,50,
11,11,11,-1,17,17,17,18,19,20,-1,-1,15,-1,-1,-1,-1,-1,-1,21,-1,-1,24,24,25,-1,28,28,29,30,31,32,33,-1,38,38,38,38,39,40,41,42,43,44,45,46,-1,50,
12,12,12,-1,16,16,17,18,19,19,18,17,16,17,18,19,20,21,22,22,23,-1,25,25,25,26,27,28,29,30,-1,33,33,-1,37,37,37,38,39,40,41,42,-1,-1,-1,-1,-1,49,
13,13,13,14,15,16,17,18,19,19,18,17,17,17,18,19,20,21,22,23,23,-1,-1,26,26,26,27,28,29,-1,-1,-1,-1,-1,36,36,37,38,39,40,41,42,-1,45,45,46,47,48,
14,14,14,-1,16,16,17,18,19,19,18,18,18,18,18,19,20,21,22,23,24,25,-1,27,27,27,27,28,29,-1,33,33,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
-1,-1,-1,-1,17,17,17,18,19,20,-1,19,19,19,19,19,20,21,22,23,24,25,-1,28,28,28,28,28,29,-1,32,32,33,34,35,36,37,38,39,40,41,42,-1,-1,46,46,47,48,
22,21,20,19,18,18,18,18,19,20,-1,20,20,20,20,20,20,21,22,23,24,25,-1,29,29,29,29,29,29,30,31,32,33,34,-1,-1,-1,-1,40,40,41,42,43,-1,-1,47,47,48,
22,21,20,20,-1,19,19,19,19,20,-1,21,21,21,21,21,21,21,22,-1,-1,26,-1,30,30,30,-1,-1,-1,-1,32,32,33,34,35,36,37,38,39,40,41,42,43,44,-1,48,48,48,
22,21,21,21,21,20,20,20,20,20,-1,22,22,22,22,22,22,22,22,-1,28,27,28,29,30,31,32,33,34,34,33,33,33,34,35,36,37,38,39,40,-1,43,43,44,-1,49,49,49,
22,22,22,22,21,21,21,-1,-1,-1,-1,-1,-1,-1,23,23,23,23,23,-1,28,28,28,29,30,31,-1,-1,-1,34,34,34,34,34,35,36,37,38,39,-1,-1,-1,-1,-1,-1,50,50,50,
-1,-1,-1,22,22,22,22,23,24,25,26,27,26,25,24,24,24,24,24,-1,-1,29,29,29,-1,32,33,34,-1,35,35,35,35,35,35,36,-1,-1,-1,-1,-1,49,49,50,51,51,51,51,
37,37,-1,23,23,23,23,23,24,25,26,27,26,25,25,25,25,-1,25,26,-1,30,30,30,31,32,33,34,-1,-1,-1,-1,-1,-1,-1,-1,-1,45,45,46,47,48,49,50,-1,52,52,52,
36,36,-1,24,24,24,24,24,24,25,-1,27,26,26,26,26,26,27,26,26,-1,31,31,31,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,-1,-1,53,-1,53,
35,36,-1,25,25,25,25,25,25,25,26,27,27,27,27,27,27,27,27,-1,-1,32,32,32,32,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,-1,-1,-1,-1,52,53,54,54,
34,-1,-1,26,26,26,26,26,26,26,26,27,28,28,28,28,28,28,28,-1,34,33,33,33,33,33,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,-1,51,51,-1,54,54,
33,-1,28,27,27,27,27,27,-1,27,-1,-1,-1,29,29,29,-1,-1,-1,-1,34,34,34,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,41,-1,-1,44,44,45,46,47,48,49,50,51,52,53,54,
32,-1,28,28,28,28,28,28,-1,28,29,30,-1,30,30,30,-1,38,37,36,35,35,35,-1,48,49,49,48,47,46,45,44,43,42,43,-1,-1,-1,-1,47,47,48,49,50,51,52,53,54,
31,30,29,29,29,29,29,29,-1,29,29,30,-1,31,-1,-1,-1,37,37,36,36,-1,-1,-1,47,-1,48,48,47,46,45,44,43,43,43,44,45,46,47,48,48,48,49,50,51,52,53,54,
32,-1,30,30,30,30,30,30,-1,-1,30,30,31,32,33,34,35,36,37,37,-1,-1,47,46,46,46,47,48,47,46,45,44,44,44,44,44,45,46,-1,-1,-1,-1,50,50,51,52,53,54,
33,-1,31,31,31,31,-1,31,32,-1,31,31,31,32,33,34,35,36,37,38,-1,-1,47,46,45,46,47,48,47,46,45,45,45,45,45,45,45,46,47,48,49,-1,-1,51,51,52,53,54,
34,-1,-1,-1,-1,32,33,32,32,-1,32,32,32,32,33,34,-1,-1,-1,-1,-1,-1,-1,-1,44,-1,-1,-1,-1,-1,-1,-1,-1,46,46,46,46,46,47,48,49,50,-1,-1,52,52,53,54,
35,36,37,38,-1,-1,-1,-1,-1,-1,33,33,33,33,33,34,35,36,37,38,39,40,41,42,43,44,-1,53,52,51,50,49,48,47,47,47,47,47,47,48,49,50,51,-1,53,53,53,54,
36,36,37,38,39,39,38,37,36,35,34,34,34,34,34,34,-1,37,37,38,39,40,41,42,43,44,-1,52,52,51,50,49,48,48,48,48,48,48,48,-1,50,50,51,-1,54,54,54,54,
37,37,37,38,-1,39,38,37,36,35,35,35,35,35,35,-1,-1,38,38,38,39,40,41,42,43,44,-1,52,51,51,50,49,49,49,49,49,49,49,49,50,51,51,51,-1,55,55,55,55,
38,38,38,-1,-1,-1,-1,-1,36,36,36,36,36,36,36,-1,40,39,39,39,39,40,41,42,43,44,-1,52,51,50,50,50,50,50,50,50,50,50,50,50,51,52,52,-1,56,56,56,56,
-1,39,39,40,41,-1,39,38,37,37,37,37,37,37,37,38,39,40,40,40,40,40,41,-1,44,44,-1,-1,-1,49,49,50,51,51,51,51,51,51,51,51,51,52,-1,-1,57,57,57,57,
-1,-1,40,40,41,40,39,38,38,38,-1,-1,-1,-1,-1,-1,40,40,41,41,41,41,41,42,43,44,45,46,47,48,49,50,51,52,52,52,52,-1,-1,-1,-1,53,-1,57,57,58,58,58,
-1,-1,41,41,41,40,39,39,39,39,-1,46,45,44,43,42,41,41,41,42,42,42,42,42,43,44,45,46,47,48,49,-1,-1,-1,-1,-1,-1,-1,57,56,55,54,55,56,57,58,59,59,
44,43,42,42,41,40,40,-1,-1,-1,-1,46,45,44,43,42,42,42,42,42,43,43,43,43,43,44,45,46,47,48,49,-1,-1,57,57,57,57,58,57,56,55,55,55,56,57,58,59,60,
44,43,43,42,41,41,41,-1,50,49,49,-1,45,44,43,43,43,43,43,43,43,44,44,44,44,44,45,46,47,48,49,-1,57,56,56,56,57,58,57,56,56,56,56,56,57,58,-1,61,
44,44,43,42,42,42,42,-1,50,49,48,47,46,-1,-1,-1,44,-1,44,44,-1,-1,-1,45,45,45,45,46,47,48,49,-1,57,56,55,56,57,58,57,57,57,57,57,57,57,58,-1,62,
45,44,43,43,43,43,43,-1,-1,-1,-1,-1,-1,-1,47,46,45,-1,45,-1,53,53,-1,46,46,46,46,46,47,48,49,-1,-1,-1,54,-1,-1,-1,58,58,58,58,58,58,58,58,-1,63,
45,44,44,44,44,44,44,45,46,47,48,49,49,48,47,46,46,-1,-1,52,52,53,-1,47,47,47,47,47,47,48,49,50,51,52,53,54,55,-1,59,59,59,59,59,-1,59,-1,-1,64,
45,45,45,45,45,45,45,45,46,47,48,49,49,48,47,47,47,-1,51,51,52,53,-1,48,48,48,48,48,48,48,49,-1,52,52,53,54,55,-1,58,58,59,60,60,-1,-1,-1,66,65,
46,46,46,46,46,-1,46,46,46,47,48,49,49,48,48,48,48,49,50,51,52,53,-1,49,49,49,49,49,49,49,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,
47,47,47,47,-1,-1,47,47,47,47,48,49,49,49,49,49,49,49,50,51,52,53,-1,-1,-1,50,-1,-1,50,50,50,50,51,52,53,54,55,-1,58,58,59,60,61,62,-1,65,65,66,
48,48,48,-1,-1,-1,-1,-1,48,48,48,49,-1,50,50,50,50,-1,-1,52,52,53,54,53,52,51,52,-1,-1,-1,-1,-1,-1,53,53,54,55,-1,59,59,59,60,61,-1,-1,66,66,66,
49,49,49,50,51,52,51,50,49,49,49,49,50,51,51,51,-1,-1,-1,-1,53,53,54,53,52,52,52,53,54,55,56,57,-1,54,54,54,55,-1,60,60,60,60,61,-1,-1,67,67,67,
1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,
1,1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,-1,23,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,-1,43,43,44,45,46,
2,2,2,2,-1,5,-1,7,7,8,9,10,11,12,13,-1,-1,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,-1,-1,-1,-1,-1,45,45,46,
3,3,3,3,-1,-1,-1,-1,8,8,9,10,11,12,-1,-1,-1,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,-1,-1,45,45,46,
-1,4,4,4,5,-1,-1,-1,9,9,9,-1,-1,-1,-1,-1,-1,-1,-1,19,19,-1,-1,23,23,-1,-1,-1,-1,-1,-1,31,-1,33,33,34,35,36,37,38,39,40,41,42,43,44,45,46,
-1,5,5,5,5,6,7,8,9,10,10,11,12,13,-1,-1,-1,-1,-1,20,20,-1,-1,24,24,-1,37,36,35,34,33,32,-1,-1,-1,-1,36,-1,-1,-1,-1,-1,-1,43,43,44,45,46,
-1,6,6,6,6,6,7,8,9,10,11,11,12,13,14,15,16,17,18,19
余十步
- 粉丝: 1679
- 资源: 172
最新资源
- CarSim与Simulink联合仿真,实时检测,动态规划路径,实现超车道,基于mpc,模型预测控制实现,距离效果见视频 提供carsim参数配置文件,导入即可运行 提供simulink模型文件 提供
- 三菱FX5U 三菱Q系列程序 三菱FX5U程序,双FX5U80MT主从站控制,普洛菲斯触摸屏程序,搭配三菱伺服,松下变频器控制运动控制数轴运动控制 FX5-485ADP模块通信应用控制,以太网
- 研究考虑CSP电站和ORC的综合能源系统优化规划 程序包含新能源消纳、光热电站、ORC有机郎肯循环、热电联产、燃气锅炉、P2G等综合元素,实现系统总运行成本最小 包括购电、购气成本、弃风光成本、设备运
- 自动驾驶产业链调研之主机厂、软件方案商、硬件方案商 , 超详细的自动驾驶产业链调研,该文件主要整理车企、Tier1主机厂、自动驾驶软件方案商、自动驾驶硬件方案商,在以下维度进行的调研整理,包括
- MATLAB代码:基于储能电站服务的冷热电多微网系统双层优化配置 电网技术文章,《基于储能电站服务的冷热电多微网系统双层优化配置》复现 仿真平台:MATLAB,需要用到cplex求解器
- 基于STM32F103C8Tx的智能温湿度监控助手:打造高效智能家居解决方案
- 约束最优化求解-拉格朗日函数Hesse阵的SQP二次规划方法求解约束最优化问题-梯度法求解无约束最优化问题 源于读研时最优化课程的大作业,具体内容请看图片 提供MATLAB源代码、大作业文档、程序
- 电源艾默生充电桩15kw模块,软件源码加原理图BOM艾默生充电桩15kw模块原版软件源码含核心算法,PFC+DCDC双dsp数字控制,原理图,BOM和PCB(但为PDF版),通信协议文档,带上位机调试
- MATLAB路径规划RRT RRT*算法 RRT 的基本步骤是: 1. 起点作为一颗种子,从它开始生长枝丫; 2. 在机器人的“构型”空间中,生成一个随机点 ; 3. 在树上找到距
- 基于生成对抗网络的可再生能源场景生成方法 风功率场景生成,光伏功率场景生成 可用于随机优化,数据扩充等后续研究 可以实现: 1.深度卷积生成对抗网络(DCGAN) 2.最小二乘生成对抗网络(LSGAN
- 涂布机PLC源代码(三菱PLC+威纶通触摸屏) 触摸屏:MT8102iE PLC:Q03UDE 相关模块:QX41,QY41P,Q68ADV,Q68DAVN,Q68ADV,QJ61BT11 程序:梯形
- RS422-MIL1553B 协议转 支持BC RT BM 1553B逻辑可以原位替BU61580协议芯片 配置寄存器和BU61580一样 存储器范围和BU61580一样4K*16bit 可外接扩展
- Java毕业设计项目:基于Springboot+mysql+maven实现的台球管理系统完整源码分享给需要的同学
- 基于FPGA的Cortex-M3软核基本SOC设计 实现基于FPGA的Cortex-M3软核基本SOC,系统外设包括GPIO和UART串口 开发基于vivado2019.2和vitis,理论上可适用
- Java毕设项目:基于spring+mybatis+maven+mysql实现的高校师生外出请假管理系统【含源码+数据库+任务书+开题报告+毕业论文】
- MATLAB代码:基于两阶段鲁棒优化算法的微网经济调度 关键词:经济调度 微网 两阶段鲁棒规划 仿真平台:MATLAB YALMIP+CPLEX 主要内容:代码主要做的是一个微网中电源容量优化配置
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈