
poj
荷塘涟漪
这个作者很懒,什么都没留下…
展开
-
【反素数+线段树求约瑟夫环】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 · 484 阅读 · 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 · 455 阅读 · 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 · 603 阅读 · 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 · 422 阅读 · 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 · 365 阅读 · 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 · 354 阅读 · 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 · 192 阅读 · 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 · 444 阅读 · 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 · 296 阅读 · 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 · 559 阅读 · 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 · 230 阅读 · 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 · 594 阅读 · 0 评论 -
【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 · 438 阅读 · 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 · 347 阅读 · 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 · 333 阅读 · 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 · 306 阅读 · 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 · 368 阅读 · 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 · 443 阅读 · 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 · 431 阅读 · 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 · 457 阅读 · 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 · 414 阅读 · 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 · 467 阅读 · 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 · 530 阅读 · 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 · 426 阅读 · 0 评论 -
【SPFA】poj1502
MPI MaelstromDescriptionBIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. V原创 2014-02-17 01:00:54 · 388 阅读 · 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 · 446 阅读 · 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 · 388 阅读 · 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 · 432 阅读 · 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 · 522 阅读 · 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 · 504 阅读 · 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 · 416 阅读 · 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 · 382 阅读 · 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 · 435 阅读 · 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 · 435 阅读 · 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 · 430 阅读 · 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 · 430 阅读 · 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 · 446 阅读 · 0 评论 -
【SPFA】poj2387
Til the Cows Come HomeDescriptionBessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs原创 2014-02-17 01:06:22 · 409 阅读 · 0 评论 -
【floyd】poj1125
Stockbroker GrapevineDescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your emp原创 2014-02-17 00:48:39 · 343 阅读 · 0 评论 -
【dp】poj1664
放苹果Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 Output对输入的每组数据M和N,用一行输出相应的K。Sample Input17 3Sample Output8其实我觉得题目原创 2014-02-24 14:33:22 · 380 阅读 · 0 评论