自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

逆风的方向 更适合飞翔

邮箱:sr19930829@163.com

  • 博客(21)
  • 资源 (10)
  • 收藏
  • 关注

原创 [ACM] hdu 4418 Time travel (高斯消元求期望)

Time travelProblem DescriptionAgent K is one of the greatest agents in a secret organization called Men in Black. Once he needs to finish a mission by traveling through time with the

2014-08-31 11:34:50 2650

原创 [ACM] hdu 2262 Where is the canteen (高斯消元求期望)

Where is the canteenProblem DescriptionAfter a long drastic struggle with himself, LL decide to go for some snack at last. But when steping out of the dormitory, he found a serious problem

2014-08-28 11:39:13 2669

原创 [BestCoder Round #6] hdu 4982 Goffi and Squary Partition(构造)

Goffi and Squary PartitionProblem DescriptionRecently, Goffi is interested in squary partition of integers.A set X of k distinct positive integers is called squary partition of n if and

2014-08-25 11:14:39 1364

原创 [BestCoder Round #6] hdu 4981 Goffi and Median (水题)

Goffi and MedianProblem DescriptionA median in a sequence with the length of n is an element which occupies position number ⌊n+12⌋ after we sort the elements in the non-decreasing order

2014-08-25 11:02:32 1466

原创 [BestCoder Round #5] hdu 4956 Poor Hanamichi (数学题)

Poor HanamichiTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 743    Accepted Submission(s): 275Problem DescriptionHanamichi i

2014-08-18 11:25:12 1538

原创 [BestCoder Round #4] hdu 4932 Miaomiao's Geometry (贪心)

Miaomiao's GeometryTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 363    Accepted Submission(s): 92Problem DescriptionThere

2014-08-11 09:55:29 1790

原创 [BestCoder Round #4] hdu 4931 Happy Three Friends

Happy Three FriendsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 70    Accepted Submission(s): 62Problem Description Dong-hao

2014-08-11 08:33:47 2660

原创 [ACM] hdu 2089 不要62(数位Dp)

不要62Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19043    Accepted Submission(s): 6442Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:la

2014-08-10 18:38:55 1708

原创 [ACM] hdu 3555 Bomb (数位DP,统计1-N中含有“49”的总数)

BombTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 7187 Accepted Submission(s): 2512Problem DescriptionThe counter-terrorists fou

2014-08-08 20:44:27 3042

原创 [ACM] ural 1057 Amount of degrees (数位统计)

1057. Amount of DegreesTime limit: 1.0 secondMemory limit: 64 MBCreate a code to determine the amount of integers, lying in the set [X;Y] and being a sum of exactlyK different integer de

2014-08-07 17:14:01 1945

原创 [ACM] POJ 2677 Tour (动态规划,双调欧几里得旅行商问题)

TourTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3585 Accepted: 1597DescriptionJohn Doe, a skilled pilot, enjoys traveling. While on vacation, he r

2014-08-07 10:05:18 3211

原创 [ACM] POJ 2593 Max Sequence (动态规划,最大字段和)

Max SequenceTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 15569 Accepted: 6538DescriptionGive you N integers a1, a2 ... aN (|ai| You should ou

2014-08-06 10:47:59 2389

原创 [ACM] POJ 2479 Maximum sum (动态规划求不相交的两段子段和的最大值)

Maximum sumTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 33363 Accepted: 10330DescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a

2014-08-06 10:42:37 3677

原创 [ACM] POJ 1141 Brackets Sequence (区间动态规划)

Brackets SequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 25087 Accepted: 7069 Special JudgeDescriptionLet us define a regular brackets seq

2014-08-06 10:02:15 2343

原创 [BestCoder Round #3] hdu 4909 String (状压,计数)

StringProblem DescriptionYou hava a non-empty string which consists of lowercase English letters and may contain at most one '?'. Let's choose non-empty substring G from S (it can be G = S

2014-08-05 16:56:34 2045

转载 [BestCoder Round #3] hdu 4910 Problem about GCD

转载自:http://www.kuangbin.net/archives/hdu4910  慢慢学习.HDU 4910Problem about GCD求小于等于 N 的与N互质的所有数的乘积MOD N Problem about GCDTime Limit: 2000/1000 MS (Java/Others)   

2014-08-05 15:30:06 1100

原创 [BestCoder Round #3] hdu 4908 BestCoder Sequence (计数)

BestCoder SequenceProblem DescriptionMr Potato is a coder.Mr Potato is the BestCoder.One night, an amazing sequence appeared in his dream. Length of this sequence is odd, the median

2014-08-04 16:55:18 1542

原创 [BestCoder Round #3] hdu 4907 Task schedule (模拟简单题)

解题思路:一开始

2014-08-04 15:04:06 1269

原创 [ACM] HDU 4576 Robot (概率DP,滚动数组)

RobotProblem DescriptionMichael has a telecontrol robot. One day he put the robot on a loop with n cells. The cells are numbered from 1 to n clockwise.At first the robot is in ce

2014-08-01 16:34:06 1961

原创 [ACM] SGU 495 Kids and Prizes (概率,期望,二项分布)

495. Kids and PrizesTime limit per test: 0.25 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardICPC (International Cardboard Producing Company) is in the bus

2014-08-01 11:32:18 2007

原创 [ACM] HDU 4035 Maze (概率DP,转化方程)

MazeSpecial JudgeProblem DescriptionWhen wake up, lxhgww find himself in a huge maze.The maze consisted by N rooms and tunnels connecting these rooms. Each pair of rooms is connected b

2014-08-01 10:14:48 1744

ListView异步显示,优化最终版本

实现了ListView的异步加载,涉及到Json数据解析,多线程和AsyncTask的使用,缓存机制以及滑动优化。

2016-04-13

最终实现ListView的异步加载

最终实现ListView的异步加载

2016-04-13

listView异步加载(多线程和AsyncTask)以及缓存的使用

用多线程和AsyncTask两种方式去实现ListView上的网络图片异步加载,其中涉及到到Json的数据解析,根据网络连接获取图片等知识。并添加了缓存机制。

2016-04-13

ListView异步加载(暂时未实现图片异步加载)

listView利用BaseAdapter, item为图片和两个字符串,暂时没实现图片的异步加载。

2016-04-13

AsyncTask加载网络图片并模拟进度条更新

该例子很好的展示了AsyncTask类的几个方法 doInBackground 必须重写,异步执行后台线程将要完成的任务 onPreExecute 执行后台耗时操作前被调用,通常用户完成一些初始化操作 onPostExecute 当doInBackground()完成后,系统会自动调用,并将doInBackground方法返回的值传给该方法。 onProgressUpdate 在doInBackground()方法中调用publishProgress()方法是怎么工作的,AsyncTask加载网络图片展示了doInBackground onPreExecute onPostExecute的工作顺序,模拟进度条更新展示了onProgressUpdate怎么工作的

2016-04-13

AsyncTask加载网络图片

demo详细的展示了怎样用异步处理加载网络上的一个图片,并在页面上显示

2016-04-13

BaseAdapter的使用Demo

怎样使用BaseAdapter

2016-04-13

上海交大ACM模板

上海交大ACM模版,里面内容挺详细的,代码很全。

2013-12-08

GPU-Z.0.6.2H

GPU_Z小工具 检测电脑的小工具 很方便使用

2013-05-31

空空如也

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

TA关注的人

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