摘要:
1 #include 2 using namespace std; 3 const int b[8][2]={{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-2},{1,2},{2,-1},{2,1}}; 4 int a[30][30],p,q; 5 struct 6 { 7 ... 阅读全文
posted @ 2014-12-02 22:45
NicoleLam
阅读(111)
评论(0)
推荐(0)
摘要:
1 #include 2 using namespace std; 3 4 const int dx[4]={0,1,0,-1}; 5 const int dy[4]={1,0,-1,0}; 6 7 int m,n,ans,ex,ey,sx,sy; 8 int a[22][22]; 9 10 ... 阅读全文
posted @ 2014-12-02 22:43
NicoleLam
阅读(142)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 5 using namespace std; 6 typedef pairP; 7 const int dx[4]={1,0,-1,0}; 8 const int dy[4]={0,1,0,-1}; 9 co... 阅读全文
posted @ 2014-12-02 22:41
NicoleLam
阅读(145)
评论(0)
推荐(0)