自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

varinic 的博客

弱弱弱

  • 博客(3)
  • 收藏
  • 关注

原创 HDU5654 xiaoxin and his watermelon candy 莫队

作死一定要用莫队,优化到吐。QAQ#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;const int MAXN=

2016-03-30 12:23:05 332

原创 hdu5653 Bomber Man wants to bomb an Array 线性dp

dp  [ R  ] = 0到R的区间最大总破坏指数,log ( 最大总破坏指数 )=log   ( x1  )+ log   ( x2  )+..... + log   ( xm  )。dp  [ R  ] = max( dp  [ L -1 ] + log   ( R-L+1  )  )。答案就是dp  [ n-1  ]。#include using namespace std;

2016-03-27 18:40:22 457

原创 cf 459D Pashmak and Parmida's problem 树状数组

给你n个数(1相等的数的个数。问你有多少对  i  ,  j  (i      f (j , n , a[  j  ])。问1到i区间有多少数和a[ i  ]相等显然可以预处理出来,得  pre[ i ]  ==    f (1 , i , a[  i  ]) 同理得suf[ j  ]   ==   f (j , n , a[  j  ])。在满足偏序关系  i  f (1 ,

2016-03-18 21:09:56 397

空空如也

空空如也

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

TA关注的人

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