poj-1656 Counting Black
摘要:
可用暴力法~下面用二维树状数组:/** 1656.cpp** Created on: 2011-7-6* Author: **/#include <iostream>#include <string>using namespace std;const int MAXN = 100 + 5;const int W = 0, B = 1;int map[MAXN][MAXN] = {};int c[MAXN][MAXN] = {};int t, x, y, l;string cmd;int lowbit(int _x){ return _x & (-_x);}voi 阅读全文
posted @ 2011-07-06 23:09 龙豆 阅读(245) 评论(0) 推荐(0)
浙公网安备 33010602011771号