摘要:
状态压缩dp#include #include #include #include using namespace std;#define MAX_COL_NUM 15#define MAX_ROW_NUM 105#define MAX_STAT 2050struct Status{ int row_bit[3]; int last_bit_count;}status[100000];int row_num, col_num;int grid[MAX_ROW_NUM];int f[3][MAX_STAT][MAX_STAT];int ans;int status_cnt;void ... 阅读全文
posted @ 2013-12-09 22:56
undefined2024
阅读(447)
评论(0)
推荐(0)

浙公网安备 33010602011771号