
AOJ and POJ
文章平均质量分 59
nomasp
Android 工程师
展开
-
AOJ 0121 Seven Puzzle {广度优先搜索}(*)
原题题意题意是有一个输入,比如:1 0 2 3 4 5 6 7摆成如下形状:1 0 2 3 4 5 6 70表示空格,其他数字可以移动到0的位置。最后需要到如下形状:0 1 2 3 4 5 6 7上面的这种情况是需要移动一步,也就是0和1直接移动就好。代码#include<iostream> #include<string> #include<algorithm> #include<queue> #原创 2015-12-13 20:50:44 · 3051 阅读 · 1 评论 -
AOJ 0033 Ball
题意题目我截图下来了,我大致解释下。有编号1到10共10个球,从上方丢下去,入口处可以选择进入左边或者右边,最后10个球全部落下去后如果左右两侧都是从小到大的顺序,则输出YES;否则输出NO。代码一开始我先测试了一下自己理解的题意是不是对的:#include <iostream> #include <vector> using namespace std;int main() { vect原创 2015-12-11 22:08:00 · 2954 阅读 · 0 评论 -
AOJ 0118 Property Distribution {深度优先搜索}
题意原题是这样的:原题呢就是上面这个,我还是来简单翻译一下吧。看到下面的图了么?大概有3种图案的标志,相同的可以拼接到一起,你需要找出最后一共有多少块。比如这里的就是有10块。它的输入是这样的:10 10 ####*****@ @#@@@@#*#* @##***@@@* #****#*@** ##@*#@@*## *@@@@*@@@# ***#@*@##* *@@@*@@##@ *@*#*@##**原创 2015-12-10 21:43:26 · 2629 阅读 · 0 评论 -
POJ 3009 Curling 2.0 {深度优先搜索}
原题$On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is ma原创 2015-12-09 22:26:08 · 4962 阅读 · 0 评论 -
POJ 1979 Red and Black(红与黑)
原文DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles.原创 2015-12-09 20:13:23 · 6006 阅读 · 0 评论 -
蓝桥杯 打印十字图
问题描述小明为某机构设计了一个十字型的徽标(并非红十字会啊),如下所示:..$$$$$$$$$$$$$.. ..$...........$.. $$$.$$$$$$$$$.$$$ $...$.......$...$ $.$$$.$$$$$.$$$.$ $.$...$...$...$.$ $.$.$$$.$.$$$.$.$ $.$.$...$...$.$.$ $.$.$.$$$$$.$.$.$ $.$原创 2016-03-12 22:52:21 · 2800 阅读 · 3 评论