pxxfxxxxx

导航

2019年4月1日 #

分治求二分法

摘要: #include using namespace std; template int BinarySearch(Type a[], const Type &x, int n) { //在a[0] a[middle]) { left = middle+1; } else { right = middle-1... 阅读全文

posted @ 2019-04-01 16:34 pxxfxxxxx 阅读(143) 评论(0) 推荐(0) 编辑

棋盘覆盖法

摘要: 过程代码 #include <iostream> using namespace std; const int BOARD_SZ = 8; static int tile = 1; static int board[BOARD_SZ][BOARD_SZ] = {0}; void chess_boar 阅读全文

posted @ 2019-04-01 15:42 pxxfxxxxx 阅读(174) 评论(0) 推荐(0) 编辑