当前位置:网站首页>【学习笔记】搜索
【学习笔记】搜索
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 + 暴力 + 模拟
边栏推荐
- Is it reliable for flush to register and open an account? Is it safe?
- asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...
- [JS] - [throttling and anti shake function]
- asp. Net datalist to display product information and pictures
- HJ string sort
- 软件测试与质量期末复习
- HJ字符串排序
- Today's notes 22/1/7
- Explanation and application of instr() function in Oracle
- ROS notes (09) - query and setting of parameters
猜你喜欢
![[JS] - [DFS, BFS application] - learning notes](/img/77/6f8d4ebe1d0b3ba036aea9358de793.png)
[JS] - [DFS, BFS application] - learning notes

三角变换公式

Host is not allowed to connect to this MySQL server

Devops Basics: Jenkins deployment and use (I)

Airflow2.1.1 ultra detailed installation document

ROS notes (08) - definition and use of service data

Unity UI shadow component

22/02/14 study notes

Upgrade HDP spark to spark 2.4.8 without upgrading ambari

Section 5: zynq interrupt
随机推荐
Disposition Flex
Section VI UART of zynq
ZYNQ_ IIC read / write m24m01 record board status
2022巴黎时装周儿童单元6.19武汉站圆满落幕
MySQL single table access method
Eslint syntax monitoring off
Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
HJ字符串排序
Devops foundation chapter Jenkins deployment (II)
HJ字符个数统计
LeetCode之三步问题
SQL master-slave replication setup
Image translation /transformer:ittr: unpaired image to image translation with transformers
Redis master-slave structure and application scenarios
SOC clock configuration
Hash slot of rediscluster cluster cluster implementation principle
Redis implements distributed locks
Three step problem of leetcode
Introduction to kubernetes (I)
Activity隐式跳转