poj 1093 Formatting Text (DP)
#include
using namespace std;
const int MAXN = 10000;
const int MAXM = 81;
const int INF = INT_MAX;
const int BASE_BADNESS = 500;
char word[MAXN][MAXM];
int width, len[MAXN];
//计算badness值
转载
2012-07-31 16:01:08 ·
230 阅读 ·
0 评论