自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

KeyboardPianist的博客

有一天,我会足够强大,足够勇敢。

  • 博客(7)
  • 问答 (3)
  • 收藏
  • 关注

原创 Codeforces670E. Correct Bracket Sequence Editor

E. Correct Bracket Sequence Editor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently Polycarp started to develop a text ed

2016-07-27 22:10:07 366

原创 Codeforces673C Bear and Colors(枚举区间)

C. Bear and Colors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bear Limak has n colored balls, arranged in one long row. Ball

2016-07-27 20:50:24 748

原创 poj2192 Zipper(dp)

Zipper Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17961 Accepted: 6391 Description Given three strings, you are to determine w

2016-07-25 23:12:05 352

原创 CodeForces 688C-NP-Hard Problem(dfs)

C. NP-Hard Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently, Pari and Arya did some research about NP-Hard proble

2016-07-24 23:10:25 494

原创 Codeforces681C Heap Operations

C. Heap Operations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petya has recently learned data structure named "Binary heap".

2016-07-23 20:54:44 513

原创 整数划分

题目: 1.将整数n划分成若干整数的划分数 2.将整数n划分成k个整数的划分数 3.将整数n划分成若干不同整数的划分数 4.将整数n划分成若干奇正整数的划分数 思路 1.将整数n划分成若干整数的划分数 dp[i][j]表示将整数i划分成不大于j的整数的划分数。 当i==j时,当划分中含有j就只有一种情况,否则就等价于将i划分成不大于j-1的划分数dp[i][j-1],所以d

2016-07-22 20:32:20 320

原创 数组分割

有n件物品,第i件物品重wi,现在将n件物品分成2堆,要求2堆的物品数量不超过1,并且使得2堆物品的重量相差最小,最后输出两对物品的重量。 这题和编程之美的2.18数组分割差不多。从n件物品中选n/2间放到一堆,使得另一堆和它物品数量差不超过1而且重量相差最小,这里是一定要选n/2件组成一堆。 原来认为是: for(i =1.....n)             for(j=n/2

2016-07-19 21:01:43 364

空空如也

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

TA关注的人

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