自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 hdoj5867 Water problem

题目: Problem Description If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3+3+5+4+4=19 letters used in total.If all the numbers from 1 to n (up to one tho

2016-09-14 20:24:31 200

原创 poj2075 Tangled in Cables

题目: Description You are the owner of SmallCableCo and have purchased the franchise rights for a small town. Unfortunately, you lack enough funds to start your business properly and are relying on

2016-08-18 15:54:10 263

原创 hdoj1045 Fire Net(DFS)

题目: Problem Description Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. A

2016-08-16 15:28:44 191

原创 hdoj1873 看病要排队

题目:http://acm.hdu.edu.cn/showproblem.php?pid=1873 这道题就是可以用优先队列的题,每次按优先级从大到小维护,不同的医生对应不同的队列。编号可以从输入时就可以确定,并逐渐递增。但有一个问题:优先级相同时,需要比较编号,先到者(小号在前)。参考代码:#include <iostream>#include <cstdio>#include <cstri

2016-08-13 14:05:20 229

原创 hdoj1678 Shopaholic

题目: Problem Description Lindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes completely mad and feels a need to buy all it

2016-08-12 15:32:37 257

原创 hdoj2100 Graveyard Design

题目: Description King George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each of which must be a square of

2016-08-11 15:20:29 211

原创 hdoj3792 Twin Prime Conjecture

题目: Problem Description If we define dn as: dn = pn+1-pn, where pi is the i-th prime. It is easy to see that d1 = 1 and dn=even for n>1. Twin Prime Conjecture states that “There are infinite conse

2016-08-09 11:41:06 265

原创 hdoj1301 Jungle Roads

题目: Problem Description http://acm.hdu.edu.cn/data/images/1301-1.gif The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads betw

2016-08-07 11:23:59 168

原创 hdoj1319

题目: Problem Description A prime number is a counting number (1, 2, 3, …) that is evenly divisible only by 1 and itself. In this problem you are to write a program that will cut some number of prim

2016-08-06 15:26:51 135

原创 hdoj2141 Can you find it?

题目: Problem Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula

2016-08-02 17:07:03 229

原创 hdoj1863 ????

??: Problem Description ???“????”???????????????????????(????????????,?????????????)???????,??????????????????????????????????,??????????????? Input ?????????????????????1?????????? N?????M

2016-08-01 18:55:13 297

原创 poj3268 Silver Cow Party

题目: Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total of M (1 ≤ M ≤ 100,000) unidir

2016-07-28 17:15:46 124

原创 hdoj1211 RSA

题目: RSATime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1949 Accepted Submission(s): 1418Problem Description RSA is

2016-07-26 19:04:21 209

原创 hdoj1564 简单博弈

题目: Problem Description New Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size of the chessboard is n*n. A stone is placed in a corner sq

2016-07-26 14:14:33 208

原创 hdoj1702

题目: hdoj1702 栈与队列

2016-07-19 14:52:42 142

转载 hdoj1009 贪心

hdoj1009 贪心原文: Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-

2016-06-09 19:13:27 237

空空如也

空空如也

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

TA关注的人

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