自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

开溜老A

藤原阔海

  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 String 常量池

特别说明:本文只是作者经过自己理解后写的笔记,如有误导之处还请指出! jdk1.6 1.6中Perm Space(常量池在其中) 和 Java Heap 是独立的当出现"1"这种双引号字符串声明时,会校验字符串常量池,如果池中没有和当前字符串值相等的,那么在池中创建"1"这个字符串常量,如果池中已存在了,那就不用创建了,只要保证当前字符串在池中有就可以了,例如下列语句任意一句只要出现...

2018-08-07 00:38:36 157

转载 js中的暂停和异步问题

除了Narrative JS,jwacs(Javascript With Advanced Continuation Support)  也致力于通过扩展JavaScript语法来避免编写让人头痛的异步调用的回调函数。用jwacs 实现的sleep,代码是这样:function sleep(msec) { var k = function_continuation; se

2015-11-04 15:58:42 1863

原创 hdu 1050 Moving Tables

题目地址链接:http://acm.hdu.edu.cn/showproblem.php?pid=1050Moving TablesProblem DescriptionThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the f

2013-05-05 03:23:27 738

原创 poj 3984 迷宫问题

题目地址链接:题目:迷宫问题Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或

2012-12-13 10:49:53 479

原创 hdu 1342 Lotto

题目地址地址:http://acm.hdu.edu.cn/showproblem.php?pid=1342题目:LottoProblem DescriptionIn a Lotto I have ever played, one has to select 6 numbers from the set {1,2,...,49}. A popular strategy to

2012-12-13 10:28:39 390

原创 关于音乐播放器

对于音乐播放器,我只想说现在最主流的MP3莫过于winamp了,但是对于现在可能有点跟不上形势了,即使当年的winamp 2.81也只能是当年的那些青年的钟爱了,但是现在不是了,而对于一直以来为它默默奉献的 nullsoft也背离了它,同时诞生了一个令现在的行家或者说是大众非常喜爱的一个播放器了,foobar2000,我个人而言,它已经把MP3的播放推向了一个小高潮了,虽然它的缺点是显而易见的,界

2012-11-13 22:04:03 287

原创 Faulty Odometer

Faulty OdometerProblem Description  You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 2 to the digi

2012-09-09 15:51:44 483

原创 线段树 hdu 1754 I Hate It

题目地址链接:http://acm.hdu.edu.cn/showproblem.php?pid=1754题目:I Hate ItProblem Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟

2012-08-27 11:53:23 452

原创 DP poj 2955 Brackets

题目地址链接:http://poj.org/problem?id=2955题目:BracketsDescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brack

2012-08-22 16:50:53 480

原创 DP poj1745 Divisibility

题目地址链接:http://poj.org/problem?id=1745题目:DivisibilityDescriptionConsider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus d

2012-08-21 16:07:53 397

原创 DP poj2817 WordStack

题目地址链接: http://poj.org/problem?id=2817Language:DefaultWordStackDescriptionAs editor of a small-town newspaper, you know that a substantial number of your readers enjoy the dail

2012-08-21 14:05:15 405

原创 DP poj3254 Corn Fields

地址:http://poj.org/problem?id=3254题目:Corn FieldsDescriptionFarmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants

2012-08-18 16:00:30 266

原创 DP背包 或 搜索 poj 3628 Bookshelf 2

题目地址链接:http://poj.org/problem?id=3628Bookshelf 2DescriptionFarmer John recently bought another bookshelf for the cow library, but the shelf is getting filled up quite quickly, and now the only a

2012-08-12 20:43:06 297

原创 背包DP hdu 1114题

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1114Piggy-BankTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5402    Accepted Submission

2012-08-12 16:59:18 421

空空如也

空空如也

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

TA关注的人

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