摘要: /*有向无权图*/ 1 #include 2 using namespace std; 3 typedef struct { 4 vector graph; 5 char a; 6 7 }zx[1000]; 8 int main() 9 { 10 zx z; 11 int n,m; 12 cout>z[i].a; 17 } 18 ... 阅读全文
posted @ 2017-08-27 14:07 zzy_ak 阅读(387) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int N = 105; 6 char s[N][N], a[] = "yizhong"; 7 bool vis[N][N]; 8 int n; 9 int dx[8] = {0, 0, 1, -1, 1, 1, -1, -1}, 10 ... 阅读全文
posted @ 2017-08-11 22:05 zzy_ak 阅读(115) 评论(1) 推荐(0)
摘要: 1 #include/*cout 9 #include 10 using namespace std; 11 const int wd=101; 12 bool how[wd][wd]; 13 char a[wd][wd]; 14 int n=0; 15 int drx[8]={0,0,1,-1,1,-1,-1,1}, 16 dry[8]={1,-1,0,0,1,1,-1,-1};/... 阅读全文
posted @ 2017-08-11 22:02 zzy_ak 阅读(126) 评论(1) 推荐(0)