自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 POJ 3986 数位dp

#include #include #include using namespace std;const int mod = 1000000003;const int maxn = 1 << 6;int n, k, inp[maxn], dp[maxn][maxn][2], pw[maxn];long long solve(int i, int pre, int len){ lo

2016-11-19 09:55:19 796

原创 POJ 3688 博弈与背包

#include #include using namespace std;const int maxn = 1E5 + 10;int inp[maxn], dp[maxn][2], n, m;int main(int argc, char const *argv[]){ while (~scanf("%d%d", &n, &m) && n + m) { for (int i

2016-11-19 09:53:31 444

原创 POJ 2287 贪心

#include #include #include using namespace std;const int maxn = 1010;int Tian[maxn], King[maxn], n;int main(int argc, char const *argv[]){ while (~scanf("%d", &n) && n) { for (int i = 0; i

2016-11-19 09:52:49 403

原创 POJ 1387 线段树

#include #include using namespace std;const int maxn = 100000;struct Event{ int x, y1, y2; int add;};struct IntervalTreeNode{ int count, total;};int n;struct Rectangle{ int x1, y1, x2,

2016-11-19 09:52:07 543

原创 POJ 2499

#include int T, a, b, kase;int main(int argc, char const *argv[]){ scanf("%d", &T); while (T--) { scanf("%d%d", &a, &b); int l = 0, r = 0; while (true) { if (a > b) { l += a /

2016-11-19 09:51:13 411

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除