![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
Cymbals
Public void effect()
展开
-
CodeForces - 598D Igor In the Museum (存储搜索结果)
Igor is in the museum and he wants to see as many pictures as possible. Museum can be represented as a rectangular field of n × m cells. Each cell is either empty or impassable. Empty cells are marke...原创 2018-02-26 01:04:42 · 335 阅读 · 0 评论 -
POJ 3278 Catch That Cow (Java,bfs)
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,0...原创 2018-02-22 00:44:58 · 309 阅读 · 0 评论 -
poj 3984 迷宫问题-水的要死却非要写一堆代码(Java)
定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。 Input 一个5 × 5的二维数...原创 2018-02-23 01:19:26 · 787 阅读 · 0 评论 -
uva 11636 Hello World!(宽....宽搜.....)
When you first made the computer to print the sentence “Hello World!”, you felt so happy, not knowing how complex and interesting the world of programming and algorithm will turn out to be. Then you...原创 2018-03-29 23:22:21 · 371 阅读 · 1 评论 -
ACM/ICPC 2018亚洲区预选赛北京网络赛 B.Tomb Raider(暴力)
Lara Croft, the fiercely independent daughter of a missing adventurer, must push herself beyond her limits when she discovers the island where her father disappeared. In this mysterious island, Lara f...原创 2018-09-28 11:46:51 · 298 阅读 · 0 评论 -
CF-1105D Kilani and the Game(多源bfs)
p个人(最多9个)抢地盘,轮流抢,每个人可以从自己的所有据点向上下左右扩展自己的扩展能力次(同时向上下左右),问终局每个人的占领个数,每个人的初始地盘可以不止一个。 考虑扩张能力为1的情况,就是一个很裸的宽搜,只要把每个人的初始位置按顺序塞入队列,bfs就可以完美模拟出轮流扩张的过程。 但是当扩张能力大于1的时候,每个人不止扩张一次,从队列中取出这个人的所有起点之后,实际上还要再进行扩张能力 - ...原创 2019-02-15 19:12:42 · 204 阅读 · 0 评论