poj 1903 meet in the middle部分枚举思想
把zifuchuan
时间复杂度为:O(2^(n/2) * log n)
#include
#include
using namespace std;
const int N = 1000086, M = 33;
char s[N];
int st[M];
map Map;
inline int count_bits(int x){ return __builtin_popco
原创
2014-08-22 20:33:21 ·
510 阅读 ·
0 评论