摘要: 简单DP题。可以用运算符重载来写,简单一些。#include #include #include #include using namespace std;class STRS{public: char str[100]; void operator=(STRS b){ strcpy(str,b.... 阅读全文
posted @ 2014-08-23 11:28 chenjunjie1994 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 二维树状数组可解此题#include #include #include #include #define lowbit(x) (x)&(-x)using namespace std;int sum[105][105],k,n,m;int W,H;void gp(int x,int y){ int ... 阅读全文
posted @ 2014-08-23 10:10 chenjunjie1994 阅读(189) 评论(0) 推荐(0) 编辑