搜索
文章平均质量分 81
老焦哥
这个作者很懒,什么都没留下…
展开
-
fzu 2150 - Fire Game解题报告
#include #include #include #include #include using namespace std;#define max(x,y) x>y?x:y;#define min(x,y) x<y?x:y;const int inf = 0x3f3f3f3f;char map[13][13];int n, m, cnt;typedef struct d原创 2015-12-08 18:53:21 · 296 阅读 · 0 评论 -
HDU 2612 Find a way题解
题目大意:Y和M要去同一个kfc相聚,求最短路径。分析:简单的bfs,运用两次bfs便可求出。我这里用了两个数组来保存各自到达的时间。上代码#include #include struct pep{ int x, y;};const int inf = 0x013f3f33;char map[205][205];int map1[40050], map2[40050原创 2015-10-23 09:50:54 · 427 阅读 · 0 评论 -
CodeForces 679C - Bear and Square Grid
Bear and Square Gridtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a grid with n rows and n colu原创 2016-09-05 11:59:25 · 430 阅读 · 0 评论