随笔分类 - acm
1728 逃离迷宫 好无语啊好无语
摘要:1 #include<cstdio>//只是因为 k,y1,x1,y2,x2的原因。 2 #include<queue> 3 #include<cstring> 4 using namespace std; 5 int m,n,time; 6 int dir[4][2]={{0,1},{1,0},{-1,0},{0,-1}};//右下上左 0,1,2,3 7 char map[110][110]; 8 int hash[110][110]; 9 struct In10 {11 int x,y,k,time;12 };13 In s,e; 14 int bfs
阅读全文
hdu2102 A计划
摘要:1 #include<cstdio> //hdu2102 2 #include<cstring> 3 #include<queue> 4 using namespace std; 5 const int INF=0x03f3f3f3f; 6 int n,m,t; 7 char map[2][12][12]; 8 int hash[2][12][12]; 9 int dir[4][2] = {{0,1},{1,0},{0,-1},{-1,0}}; 10 11 struct In 12 { 13 int x,y,z,t; 14 }; 15 In e; 16 in
阅读全文
浙公网安备 33010602011771号