自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Allen_L_L的专栏

记录·····

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

原创 GDUT2012-1002最小差值

最小差值Time Limit : 3000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 308   Accepted Submission(s) : 98Font: Times New Roman | Verdana | GeorgiaFont

2012-05-01 17:03:24 573

原创 动态规划(4)

Super Jumping! Jumping! Jumping!http://acm.hdu.edu.cn/showproblem.php?pid=1087#include#include#include#includeusing namespace std;//动态规划,计算每个位置的最大升序不连续序列和。//睇了很久想了很久才想明白,还要感谢网友的代码,要不是看

2012-04-28 21:19:21 296

原创 动态规划(3)

Robberieshttp://acm.hdu.edu.cn/showproblem.php?pid=2955#include#include#include#includeusing namespace std;//这题是参考网友的代码····自己的能力还是不可以。不过做了这题,再和0-1背包问题想一想,觉得收获还是不错。//网友说将逃跑率当成物品价值····小弟还是

2012-04-25 21:27:06 573

原创 个人C++模板之大数系列(加法)

大数模板,加杭电1002的代码·····因为种种原因,第二次做的时候WA了几次,CE了几次,真蛋痛。#include#include#include#includeusing namespace std;//杭电 1002//http://acm.hdu.edu.cn/showproblem.php?pid=1002//下面是大数相加的模板。void Bignumber(s

2012-04-23 23:40:47 466

原创 动态规划(2)

最大报销额http://acm.hdu.edu.cn/showproblem.php?pid=1864 #include#include#include#include#include#includeusing namespace std;int main( ){ double Q,d,b[31],maxsum,dp[31]; int

2012-04-22 17:51:17 386

原创 动态规划(1)

0-1背包问题想了很久终于想明白这个很多人都说简单的0-1背包问题···还得感谢小鸣·····题目:http://acm.hdu.edu.cn/showproblem.php?pid=2602 #include#include#include#include#includeusing namespace std;int

2012-04-22 17:49:53 249

原创 Codeforces Beta Round #1

A. Theatre Squaretime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputTheatre Square in the capital city of Berl

2012-04-06 20:48:53 261

原创 Codeforces Beta Round #4 (Div. 2 Only)

第一次在Codeforces做题,这套题比较简单···A. Watermelon这题是很水的水题,不过有坑人的地方,看似简单的奇偶性判断,但是要注意w小于等于2时的情况,特别。#include#include#include#includeusing namespace std;int main( ){ int w; while(cin>>w)

2012-03-27 16:15:50 238

空空如也

空空如也

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

TA关注的人

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