摘要: 题目链接:http://codeforces.com/contest/409/problem/A很水很水的题 1 ///2014.4.2 2 ///codeforces April Fools Day Contest 2014 3 ///A. The Great Game 4 5 #include 6 #include 7 #include 8 using namespace std; 9 10 int main()11 {12 // freopen("in","r",stdin);13 // freopen("out"," 阅读全文
posted @ 2014-04-02 23:18 basement_boy 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=2251题目大意:给出一三维空间的地牢,要求求出由字符'S'到字符'E'的最短路径移动方向可以是上,下,左,右,前,后,六个方向每移动一次就耗费一分钟,要求输出最快的走出时间。不同L层的地图,相同RC坐标处是连通的简单的bfs 1 ///2014.3.30 - 2014.4.2 2 ///poj2251 3 4 #include 5 #include 6 using namespace std; 7 8 int L,R,C; 9 char maze[40][40][40];10 bool visted 阅读全文
posted @ 2014-04-02 21:32 basement_boy 阅读(154) 评论(0) 推荐(0) 编辑