当前位置:网站首页>【学习笔记】搜索
【学习笔记】搜索
2022-06-28 08:06:00 【仰望星空的蚂蚁】
搜索(x)
思维(v)
Koala and Notebook
idea 海星。
考虑拆边使得每条边的权值为 [0,9] 。
然后用类似桶排序的做法 BFS 即可。
Limak and Shooting Points
神仙题。
考虑全排列开枪顺序 。然后按照这个顺序开枪打即可。注意是倒序枚举,每一枪已知的是最终打到哪个 monster ,那么对于路径上的障碍物则用递归处理。
考试应该想不出来这么秒的方法。
这题给我们的启发是:巧妙的暴力,从不同方式切入,搜索难度差别很大。
Super Jaber
解法似乎并不容易观察到。
考察路径分为两种:
- 不经过任何 “传送门” ,相当于直接曼哈顿距离 。
- 经过某个颜色的传送门,那么我们可以枚举颜色,作为 “中转站”
只需预处理出 d p [ i ] [ x ] [ y ] dp[i][x][y] dp[i][x][y] 表示从颜色为 i i i 的任意起点出发到 ( x , y ) (x,y) (x,y) 的最短距离即可。方法是显然的。
这道题非常考验观察能力。
Playoff Restoration
idea 海星 。
meet in the middle + 暴力 + 模拟
边栏推荐
- MySQL tablespace parsing
- 2022巴黎时装周儿童单元6.19武汉站圆满落幕
- Section 5: zynq interrupt
- Jenkins' common build trigger and hook services (V)
- Idea package together, using compact middle packages to solve &
- 云原生:云计算技术再次升级 开启全面云开发时代
- Study notes 22/1/11
- How redis solves cache avalanche, breakdown and penetration problems
- Dataset filling data, and the use of rows and columns
- Disposition Flex
猜你喜欢

sql主從複制搭建

Three step problem of leetcode

图像翻译:UVCGAN: UNET VISION TRANSFORMER CYCLE-CONSISTENT GAN FOR UNPAIRED IMAGE-TO-IMAGE TRANSLATION

云原生:云计算技术再次升级 开启全面云开发时代

NLP sequence can completely simulate human brain intelligence

Flex layout
![[shangpinhui] project notes](/img/aa/043dd16c20348f1f80ca5e9e4ad330.png)
[shangpinhui] project notes

Static resource compression reduces bandwidth pressure and increases access speed

asp. Net registration page

Ambari (V) ---ambari integrated Azkaban (valid for personal test)
随机推荐
Unity UI shadow component
Section Xi. Axi of zynq_ Use of DMA
Redis persistence problem and final solution
Introduction to kubernetes (I)
Application of XOR. (extract the rightmost 1 in the number, which is often used in interviews)
HJ prime factor
Upgrade HDP spark to spark 2.4.8 without upgrading ambari
sql分析(查询截取分析做sql优化)
NLP sequence can completely simulate human brain intelligence
A single node obtains the lock lock of the order number
Section 9: dual core startup of zynq
Configuring multiple instances of MySQL under Linux
Study notes 22/1/19 and 22/1/20
Leetcode learning records
匿名页的反向映射
Redis cerebral fissure
Airflow2.1.1 summary of the pits stepped on in actual combat!!
你了解TCP協議嗎(二)?
Hj21 simple password
MySQL row format parsing