自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 资源 (3)
  • 收藏
  • 关注

转载 经典算法之七大排序总结篇

在我的博客对冒泡排序,直接插入排序,直接选择排序,希尔排序,归并排序,快速排序和堆排序这七种常用的排序方法进行了详细的讲解,并做成了电子书以供大家下载。下载地址为:http://download.csdn.net/detail/morewindows/4443208。       有网友提议到这本《MoreWindows白话经典算法之七大排序》电子书讲解细致用来平时学习是非常好的,但是

2014-10-13 20:53:09 586

原创 POJ 2395 Out of Hay

Out of HayTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11030 Accepted: 4320DescriptionThe cows have run out of hay, a horrible event that must be r

2014-08-02 16:27:55 683

原创 POJ 2377 Bad Cowtractors

Bad CowtractorsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10634 Accepted: 4504DescriptionBessie has been hired to build a cheap internet network amon

2014-08-02 16:23:03 672

原创 POJ 3268 Silver Cow Party

Silver Cow PartyTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12633 Accepted: 5631DescriptionOne cow from each of N farms (1 ≤ N ≤ 1000) convenien

2014-08-02 16:15:25 677

原创 poj 3259 Wormholes

WormholesTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 30766 Accepted: 11157DescriptionWhile exploring his many farms, Farmer John has discovered a nu

2014-08-02 16:06:48 632

原创 POJ 2139 Six Degrees of Cowvin Bacon

Six Degrees of Cowvin BaconTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2986 Accepted: 1390DescriptionThe cows have been making movies lately, so they

2014-08-02 15:57:43 1377

原创 POJ 1258 Agri-Net

Agri-NetTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 39730 Accepted: 16145DescriptionFarmer John has been elected mayor of his town! One of his campaig

2014-08-01 11:01:33 558

原创 0801题解

#include #include #include #include #include #include using namespace std;int a[100005];int dp[100005];int main(){ int n; while(~scanf("%d",&n)){ if(n==0) break; int sum

2014-07-31 20:24:05 475

原创 HDU 3001 Travelling

DescriptionAfter coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does not mind w

2014-07-30 15:51:32 741

原创 POJ 1185 炮兵阵地

Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色

2014-07-30 10:47:55 643 1

原创 ZOJ 4257 Most Powerful

DescriptionRecently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and

2014-07-30 10:22:36 775

原创 POJ 3254 Corn Fields

Corn FieldsCrawling in process...Crawling failedTime Limit:2000MS    Memory Limit:65536KB     64bit IO Format:%I64d & %I64uSubmitStatus DescriptionFarmer John has purchased a

2014-07-29 22:25:53 734

原创 codeforces 126B Password

DescriptionAsterix, Obelix and their temporary buddies Suffix and Prefix has finally found the Harmony temple. However, its doors were firmly locked and even Obelix had no luck opening them.A li

2014-07-28 22:46:29 1208

原创 HDU 2639 Bone Collector II

one Collector IITime Limit: 5000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2179    Accepted Submission(s): 1142Problem DescriptionThe title of

2014-07-28 21:49:48 475

原创 HDU 2126 Buy the souvenirs

Buy the souvenirsTime Limit: 10000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 927    Accepted Submission(s): 319Problem DescriptionWhen the wi

2014-07-28 20:35:05 516

原创 POJ 1251 Jungle Roads

Jungle RoadsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 19064 Accepted: 8702DescriptionThe Head Elder of the tropical island of Lagrishan has a

2014-07-28 20:24:21 489

原创 uva 12356 - Army Buddies

Description Problem JJin Ge Jin Qu [h]ao(If you smiled when you see the title, this problem is for you ^_^)For those who don't know KTV, see: http://en.wikipedia.org/w

2014-07-28 20:09:01 1305

原创 Codeforces 371C Hamburgers

DescriptionPolycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three decent ingredients to make hamburgers

2014-07-27 16:11:43 1236

原创 Codeforces 424 C Magic Formulas

Time Limit:2000MS     Memory Limit:262144KB    64bit IO Format:%I64d & %I64u SubmitStatus Practice CodeForces 424C DescriptionPeople in the Tomskaya region like magic formulas ve

2014-07-27 16:03:19 713

原创 uva 562 Dividing coins

uva 562 Dividing coins

2014-07-27 15:58:52 573

原创 ZOJ 2319 Beautiful People

Beautiful PeopleTime Limit: 5 Seconds      Memory Limit: 32768 KB      Special Judge The most prestigious sports club in one city has exactly N members. Each of its members is strong and bea

2014-07-27 15:51:29 731

原创 HYSBZ 1800 fly 飞行棋

fly 飞行棋Crawling in process...Crawling failedTime Limit:10000MS    Memory Limit:65536KB     64bit IO Format:%lld & %lluSubmitStatus Practice HYSBZ 1800 Description给出圆周上的若干个点

2014-07-24 20:43:24 755

原创 UVA 10288 Coupons

CouponsCrawling in process...Crawling failedTime Limit:3000MS    Memory Limit:0KB     64bit IO Format:%lld & %lluSubmitStatus Practice UVA 10288 DescriptionProblem FC

2014-07-24 16:56:06 550

原创 URAL 1528 Sequence

SequenceCrawling in process...Crawling failedTime Limit:3000MS    Memory Limit:65536KB     64bit IO Format:%I64d & %I64uSubmitStatus Practice URAL 1528 DescriptionYou are

2014-07-24 16:52:31 606

原创 HYSBZ 1406 密码箱

1406: [AHOI2007]密码箱Time Limit: 5 Sec  Memory Limit: 64 MBSubmit: 670  Solved: 376[Submit][Status]Description在一次偶然的情况下,小可可得到了一个密码箱,听说里面藏着一份古代流传下来的藏宝图,只要能破解密码就能打开箱子,而箱子背面刻着的古代图标,就是对密码的提示。经过艰

2014-07-24 16:36:14 831

原创 Codeforces Round #257 (Div. 2) C. Jzzhu and Chocolate

C. Jzzhu and Chocolatetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJzzhu has a big rectangular chocolate bar that

2014-07-23 10:31:58 756

原创 Codeforces Round #257 (Div. 2) B. Jzzhu and Sequences

B. Jzzhu and Sequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJzzhu has invented a kind of sequences, they me

2014-07-23 10:27:47 972

原创 Codeforces Round #257 (Div. 2) A. Jzzhu and Children

A. Jzzhu and Childrentime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n children in Jzzhu's school. Jzzhu is

2014-07-23 10:24:35 735

原创 Codeforces Round #256 (Div. 2) D. Multiplication Table 二分

D. Multiplication Tabletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion isn't just charmi

2014-07-23 10:17:59 946

原创 Codeforces Round #256 (Div. 2) B. Suffix Structures

B. Suffix Structurestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion isn't just a bison. He also is

2014-07-18 21:59:09 903

原创 Codeforces Round #256 (Div. 2) A. Rewards

A. Rewardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion is called the Champion for a reason. B

2014-07-18 21:45:11 701

原创 UVa 11583 Partitioning by Palindromes

DescriptionProblem H: Partitioning by PalindromesWe say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome,

2014-07-18 12:16:08 906

原创 One-Based Arithmetic

One-Based Arithmetictime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProf. Vasechkin wants to represent positive inte

2014-07-18 12:08:16 838

原创 Kolya and Tandem Repeat

Kolya and Tandem Repeattime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya got string s for his birthday, the st

2014-07-17 16:44:31 1064

原创 Anton and Letters

Anton and Letterstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Anton has found a set. The set consists of

2014-07-17 16:41:06 873

原创 POJ 2739 Sum of Consecutive Prime Numbers

Sum of Consecutive Prime NumbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18782 Accepted: 10308DescriptionSome positive integers can be represen

2014-07-17 16:26:00 502

原创 POJ 2782 Bin Packing

Bin PackingTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 5416 Accepted: 2452DescriptionA set of n 1-dimensional items have to be packed in identical

2014-07-17 16:16:16 1325

原创 Balancer - CodeForces 440B

DescriptionPetya has k matches, placed in n matchboxes lying in a line from left to right. We know that k is divisible by n. Petya wants all boxes to have the same number of matches in

2014-07-17 15:56:53 718

原创 POJ 3566

Building for UNTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 1367 Accepted: 599 Special JudgeDescriptionThe United Nations has decided to buil

2014-07-17 15:56:03 848

原创 POJ 1664 放苹果

放苹果Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 25785 Accepted: 16403Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。

2014-07-15 10:19:18 612

背包九讲最新版.pdf

背包九讲最新版.pdf

2014-09-25

疯狂Java实战讲义(光盘源代码)

疯狂Java实战讲义(光盘源代码)里面有很多项目源码,可供学习

2014-09-25

javafx入门

javafx是编写的界面比常用的swing awt好看,得安装jdk8和最新的eclipse。

2014-05-24

空空如也

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

TA关注的人

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