摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int INF = 0xfffffff; 10 int g[17][17]; 11 int f[17][17] = {}; 12 int ans[17][17] = {... 阅读全文
posted @ 2018-04-29 21:53 ouyang_wsgwz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int s,n,m; 7 int vis[105][105][105]; 8 9 struct node 10 { 11 int s,n,m,step; 12 }; 13 int check(int x,int y,... 阅读全文
posted @ 2018-04-29 17:30 ouyang_wsgwz 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int mark[205][205]; 7 char map[205][205]; 8 int fx[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; 9 int num[205][205],num1[205][205],... 阅读全文
posted @ 2018-04-29 15:14 ouyang_wsgwz 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct node{ 8 int cur, step; 9 }now, Next; 10 int vis[10001], star, finish, prime[10001] = { 0, 0, 1 }; 11 1... 阅读全文
posted @ 2018-04-29 15:08 ouyang_wsgwz 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int n; 6 bool ok; 7 8 void dfs(unsigned long long x, int y, int k){ 9 if(ok == true) return ; 10 if(x % y == 0){ 11 cout ... 阅读全文
posted @ 2018-04-29 14:31 ouyang_wsgwz 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n, m; 7 const int maxn = 105; 8 string s[maxn]; 9 int f[8][2] = { {0, 1},{1, 0},{-1, 0},{0, -1},{1, 1},{-1, -1},{1, -1},{-... 阅读全文
posted @ 2018-04-29 13:51 ouyang_wsgwz 阅读(138) 评论(0) 推荐(0) 编辑