摘要: 1 #include 2 using namespace std; 3 int num=0; 4 int minnum=100; 5 void flip(int step); 6 void fanzhuan(int x,int y); 7 char map[4][4]; 8 bool same(); 9 bool safe(int x,int y); 10... 阅读全文
posted @ 2017-01-24 14:49 jintg 阅读(247) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 4 4 char map[SIZE][SIZE]; 5 char map1[SIZE][SIZE]; 6 int Dx[5]={0,0,0,1,-1}; 7 int Dy[5]={0,1,-1,0,0}; 8 int num[16]; 9 int n=0; 1... 阅读全文
posted @ 2017-01-24 14:47 jintg 阅读(246) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int test_main(int data[300],int startNum); 6 7 static void build_data(int data[300]) 8 { 9 for(int i=0;i<300;i++) 10 { 11 ... 阅读全文
posted @ 2017-01-24 14:47 jintg 阅读(145) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 5 4 #define Limit 150 5 int a[SIZE]={35,105,100,45,75}; 6 int b[SIZE]={115,75,55,35,105}; 7 int a1[SIZE]; 8 int b1[SIZE]; 9 int c[S... 阅读全文
posted @ 2017-01-24 14:46 jintg 阅读(163) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 struct chess{ 4 int x; 5 int y; 6 int step; 7 int prep; 8 }; 9 chess point[26]; 10 int Dx[8]={-2,-1,1,2,2,1,-1,-2}; 11 int Dy[8]={1,2,2,1... 阅读全文
posted @ 2017-01-24 14:45 jintg 阅读(233) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 5 4 int Dx[4]={0,0,1,-1}; 5 int Dy[4]={1,-1,0,0}; 6 int maze[SIZE][SIZE]; 7 int map[SIZE][SIZE]; 8 int num=0; 9 int minnum=1000000; 10 int m... 阅读全文
posted @ 2017-01-24 14:44 jintg 阅读(164) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 21 4 int map[SIZE][SIZE]; 5 int n=0; 6 int maxnum=0; 7 int node[SIZE]; 8 void findmax(int step,int num); 9 int main() 10 { 11 cin >> n; ... 阅读全文
posted @ 2017-01-24 14:43 jintg 阅读(152) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 using namespace std; 4 char data[11][101]; 5 int len[11]; 6 int addlen[11][11]; 7 int minnum; 8 int used[11]; 9 void add(int x,int y); 10 void dfs(int pre,int step... 阅读全文
posted @ 2017-01-24 14:39 jintg 阅读(431) 评论(0) 推荐(0)
摘要: #include using namespace std; struct chess{ int x; }; int color[1000]={0}; int maxnum; int data[1000][1000]={0}; chess p[1000]; int flag; void bfs(int n); int main() { freopen("input.txt",... 阅读全文
posted @ 2017-01-22 11:16 jintg 阅读(132) 评论(0) 推荐(0)
摘要: case: 41 2 3 444 2 3 166 5 4 2 3 186 1 4 7 2 5 8 3122 7 4 1 3 5 8 10 12 9 6 11 阅读全文
posted @ 2017-01-22 11:14 jintg 阅读(181) 评论(0) 推荐(0)