搜索
反向爆零直至AK
从零开始的编程生活,枯燥却紧张
展开
-
M - Children of the Candy Corn (第一次写左右优先的搜索,自己独立写的可能不够优化)
M - Children of the Candy Corn The cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippi原创 2017-01-09 18:38:44 · 270 阅读 · 0 评论 -
Painter
题目连接:点击打开链接 题目大意: R代表“\”,B代表“/”,G代表“\”,“/”,两种; 给你一个地图,“."不能画, 1.如果一个点是R(x,y),他的右下角(x+1,y+1)如果还是R那么可以一起画,直到不是R为止,这属于一笔; 2. 如果一个点是B(x,y),他的左下角(x+1,y+1)如果还是B那么可以一起画,直到不是R为止,这属于一笔; 3.如果在画的过程中遇到G,无论原创 2017-03-16 21:08:09 · 396 阅读 · 0 评论 -
牛客网 D-图图(广搜)
题目链接:图图 思路: 有两种情况: 1.直接跳过门,从起点走到终点。 2.从起点–钥匙–门–终点。 比较这两种方法的路径即可(要注意一些细节)。 代码: #include<stdio.h> #include<string.h> #include<queue> #include<algorithm> using namespace ...原创 2018-03-07 19:59:33 · 145 阅读 · 0 评论