2012年7月20日

hdu 2612 Find a way

摘要: 点击打开链接 两个BFS即可。。 #include"stdio.h"#include"string.h"#include"queue"#define N 205using namespace std;char str[N][N];int n,m,a1[1004]={0},a2[1004]={... 阅读全文

posted @ 2012-07-20 10:22 Slege 阅读(90) 评论(0) 推荐(0) 编辑

hdu 1240 Asteroids!

摘要: 点击打开链接 因为没令str[d][e][f]='O',导致wrong了无数次。。。而且郁闷了好几天。。 #include"stdio.h"#include"string.h"#include"queue"#include"ctype.h"using namespace std;int map[... 阅读全文

posted @ 2012-07-20 09:06 Slege 阅读(105) 评论(0) 推荐(0) 编辑

导航