poj
荷塘涟漪
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【dp】poj1141
Brackets SequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 23551 Accepted: 6647 Special JudgeDescriptionLet us define a regular brackets seque原创 2014-03-07 23:45:23 · 506 阅读 · 0 评论 -
【dijkstra】poj1797
Heavy TransportationDescriptionBackground Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether ther原创 2014-02-17 01:22:33 · 321 阅读 · 0 评论 -
【floyd+枚举】poj1178
CamelotDescriptionCenturies ago, King Arthur and the Knights of the Round Table used to meet every year on New Year's Day to celebrate their fellowship. In remembrance of these events, we consid原创 2014-02-27 19:51:26 · 619 阅读 · 0 评论 -
【spfa(栈)||堆优dijkstra】poj3159
CandiesDescriptionDuring the kindergarten days, flymouse was the monitor of his class. Occasionally the head-teacher brought the kids of flymouse’s class a large bag of candies and had flymous原创 2014-02-17 23:39:15 · 364 阅读 · 0 评论 -
【多重背包】poj1014
DividingDescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all t原创 2014-02-18 00:47:10 · 499 阅读 · 0 评论 -
【bellman_ford】poj2240
ArbitrageDescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1原创 2014-02-17 23:29:21 · 263 阅读 · 0 评论 -
【bellman_ford】poj3259
WormholesDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its de原创 2014-02-17 23:43:00 · 407 阅读 · 0 评论 -
【floyd】poj3660
Cow ContestDescriptionN (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all know, some cows code better than others. Each cow has a certain cons原创 2014-02-18 00:31:35 · 429 阅读 · 0 评论 -
【dp】poj1179
PolygonDescriptionPolygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled with an integer and each edge is labelle原创 2014-03-05 17:13:09 · 466 阅读 · 0 评论 -
【状压dp】bzoj1087 || scoi2005互不侵犯
1087: [SCOI2005]互不侵犯KingTime Limit: 10 Sec Memory Limit: 162 MBSubmit: 1202 Solved: 697[Submit][Status]Description在N×N的棋盘里面放K个国王,使他们互不攻击,共有多少种摆放方案。国王能攻击到它上下左右,以及左上左下右上右下八个方向上附近的各一个格子,共8个原创 2014-03-08 00:16:15 · 689 阅读 · 0 评论 -
【dp】poj1036
GangstersDescriptionN gangsters are going to a restaurant. The i-th gangster comes at the time Ti and has the prosperity Pi. The door of the restaurant has K+1 states of openness expressed by th原创 2014-03-07 23:24:38 · 523 阅读 · 0 评论 -
【状压dp】poj1185 || noi2001炮兵阵地
炮兵阵地Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 17163 Accepted: 6558Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能原创 2014-03-08 00:53:29 · 658 阅读 · 0 评论 -
【SPFA】poj1511
Invitation CardsDescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, mos原创 2014-02-17 01:14:33 · 478 阅读 · 0 评论 -
【状压dp】poj3254
Corn FieldsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 6106 Accepted: 3235DescriptionFarmer John has purchased a lush new rectangular pasture compos原创 2014-03-08 00:06:00 · 594 阅读 · 0 评论 -
【树形dp】poj1463
Strategic gameTime Limit: 2000MS Memory Limit: 10000KTotal Submissions: 6089 Accepted: 2796DescriptionBob enjoys playing computer games, especially strategic game原创 2014-04-16 13:14:04 · 545 阅读 · 0 评论 -
【树形dp】poj2342
Anniversary partyDescriptionThere is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that原创 2014-04-16 12:31:45 · 484 阅读 · 0 评论 -
【后缀数组】poj3261
Musical ThemeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17176 Accepted: 5903DescriptionA musical melody is represented as a sequence of N (1<=N<=20原创 2014-04-21 14:39:32 · 527 阅读 · 0 评论 -
【后缀数组】poj1743
Musical ThemeDescriptionA musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It is unfortunate but tr原创 2014-04-21 14:52:02 · 519 阅读 · 0 评论 -
【后缀数组】poj1226
SubstringsDescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any o原创 2014-04-22 16:20:31 · 514 阅读 · 0 评论 -
【后缀数组】poj3294
Life FormsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 8956 Accepted: 2476DescriptionYou may have wondered why most extraterrestrial life forms resem原创 2014-04-22 17:37:49 · 434 阅读 · 0 评论 -
【并查集】POJ 1182
食物链Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种说法是"2 X Y",表示X吃Y。原创 2014-08-19 11:13:56 · 368 阅读 · 0 评论 -
【线段树】poj2828
Buy TicketsTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 13383 Accepted: 6659DescriptionRailway tickets were difficult to buy around the Lunar New Y原创 2014-08-19 11:23:59 · 387 阅读 · 0 评论 -
【线段树】hdu1828 & poj1177
补题解开始……timuA number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partially o原创 2014-08-19 10:13:05 · 399 阅读 · 0 评论 -
【反素数+线段树求约瑟夫环】poj2886
Who Gets the Most Candies?DescriptionN children are sitting in a circle to play a game.The children are numbered from 1 to N in clockwise order. Each of them has a card with a non-zero i原创 2014-08-19 11:51:17 · 553 阅读 · 0 评论 -
【搜索】poj2965
The Pilots Brothers' refrigeratorDescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the原创 2014-02-23 14:25:23 · 487 阅读 · 0 评论 -
【高精度】poj1001
ExponentiationDescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experi原创 2014-01-22 11:52:59 · 483 阅读 · 0 评论 -
【水】poj1005
I Think I Need a HouseboatDescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Lo原创 2014-01-22 12:34:37 · 482 阅读 · 0 评论 -
【水】poj1002
487-3279DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the原创 2014-01-22 12:20:30 · 489 阅读 · 0 评论 -
【水】poj1003
HangoverDescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be p原创 2014-01-22 12:26:44 · 430 阅读 · 0 评论 -
【水】poj1004
Financial ManagementDescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold o原创 2014-01-22 12:29:35 · 473 阅读 · 0 评论 -
【堆】poj2833
The AverageDescriptionIn a speech contest, when a contestant finishes his speech, the judges will then grade his performance. The staff remove the highest grade and the lowest grade and comput原创 2014-02-05 21:41:16 · 587 阅读 · 0 评论 -
【归并排序求逆序对】poj1007
DNA SortingDescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence `原创 2014-02-05 21:00:17 · 588 阅读 · 0 评论 -
【最小生成树】poj1258
Agri-NetDescriptionFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course. Farm原创 2014-02-05 21:53:25 · 489 阅读 · 0 评论 -
【堆】poj2442
SequenceDescriptionGiven m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear that we may get n ^ m t原创 2014-02-05 21:36:41 · 444 阅读 · 0 评论 -
【01背包】poj3624
Charm BraceletDescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) availab原创 2014-02-23 13:45:24 · 498 阅读 · 0 评论 -
【完全背包】poj2063
InvestmentDescriptionJohn never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhere in South-America, an原创 2014-02-23 13:56:10 · 485 阅读 · 0 评论 -
【二分+高精度快速幂】poj2109
Power of CryptographyTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17140 Accepted: 8660DescriptionCurrent work in cryptography involves (among other原创 2013-12-27 22:32:21 · 603 阅读 · 0 评论 -
【dp 最大子矩形】poj1050
To the MaxDescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum o原创 2014-02-23 14:41:47 · 520 阅读 · 0 评论 -
【dp】poj1088
滑雪DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 516 17 18 19 615 24 25 20 7原创 2014-02-24 13:18:58 · 434 阅读 · 0 评论 -
【二分图最大匹配】poj2239
Selecting CoursesDescriptionIt is well known that it is not easy to select courses in the college, for there is usually conflict among the time of the courses. Li Ming is a student who loves stu原创 2014-02-24 14:02:11 · 527 阅读 · 0 评论
分享