
poj
文章平均质量分 80
TLECODE
这个作者很懒,什么都没留下…
展开
-
【poj 1502】 MPI Maelstrom 【East Central North America 1996】
DescriptionBIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKee's原创 2017-11-05 20:44:56 · 319 阅读 · 0 评论 -
【poj 1144】Network 【Central Europe 1996】
DescriptionA Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The原创 2017-09-09 21:26:32 · 373 阅读 · 0 评论 -
【poj2524】Ubiquitous Religions 【Alberta Collegiate Programming Contest 2003.10.18】
DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your un原创 2017-08-10 20:49:13 · 628 阅读 · 0 评论 -
【poj3461】Oulipo 【BAPC 2006 Qualification】
DescriptionThe French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter'e'. He was a member of the Oulipo group. A quote from the book:Tout avait Pair no原创 2017-08-05 23:00:32 · 401 阅读 · 0 评论 -
【poj3630】Phone List 【Nordic 2007】
DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue listed these numbers:Emergency 911原创 2017-08-05 15:50:20 · 307 阅读 · 0 评论 -
【poj2377】Bad Cowtractors 【USACO 2004 December Silver】
DescriptionBessie has been hired to build a cheap internet network among Farmer John's N (2 <= N <= 1,000) barns that are conveniently numbered 1..N. FJ has already done some surveying, and found M原创 2017-08-02 22:55:42 · 459 阅读 · 0 评论 -
【poj2387】Til the Cows Come Home 【USACO 2004 November】
DescriptionBessie 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 her beauty sleep, so she w原创 2017-08-02 22:30:48 · 553 阅读 · 0 评论 -
【poj2367】Genealogical tree 【Ural State University Internal Contest October'2000 Junior Session】
DescriptionThe system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in different groups, so that a Martian can hav原创 2017-08-02 22:00:07 · 325 阅读 · 0 评论 -
【poj1611】The Suspects 【Asia Kaohsiung 2003】
DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best str原创 2017-08-02 21:17:13 · 316 阅读 · 0 评论 -
【poj1273】Drainage Ditches 【USACO 93】
题目描述在农夫约翰的农场上,每逢下雨,Bessie最喜欢的三叶草地就积聚了一潭水。这意味着草地被水淹没了,并且小草要继续生长还要花相当长一段时间。因此,农夫约翰修建了一套排水系统来使贝茜的草地免除被大水淹没的烦恼(不用担心,雨水会流向附近的一条小溪)。作为一名一流的技师,农夫约翰已经在每条排水沟的一端安上了控制器,这样他可以控制流入排水沟的水流量。农夫约翰知道每一条排水沟每分钟可以流过原创 2017-07-31 22:17:55 · 425 阅读 · 0 评论 -
【poj3264】Balanced Lineup 【USACO 2007 January Silver】
DescriptionFor the daily milking, Farmer John's N cows (1 ≤N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultimate Frisbee with some of the cows.原创 2017-07-28 23:26:48 · 488 阅读 · 0 评论 -
【poj 1125】Stockbroker Grapevine
DescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge原创 2017-07-05 21:17:48 · 339 阅读 · 0 评论 -
【poj3259】Wormholes 【USACO 2006 December Gold】
DescriptionWhile exploring his many farms, Farmer John hasdiscovered a number of amazing wormholes. A wormhole is very peculiar becauseit is a one-way path that delivers you to its destination at a原创 2017-06-28 20:33:13 · 696 阅读 · 0 评论 -
【poj1007】DNA Sorting
DescriptionOne 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 ``DAABEC'', this mea原创 2017-06-25 17:33:24 · 449 阅读 · 0 评论 -
【poj 2352】 Stars 【Ural Collegiate Programming Contest 1999】
DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are no原创 2017-11-17 23:04:05 · 286 阅读 · 0 评论 -
【poj 2773】 Happy 2006
DescriptionTwo positive integers are said to be relatively prime to each other if the Great Common Divisor (GCD) is 1. For instance, 1, 3, 5, 7, 9...are all relatively prime to 2006. Now your job is e...原创 2018-06-01 20:37:59 · 225 阅读 · 0 评论 -
【bzoj 1121】 激光发射器SZK 【POI2008】
Description多边形相邻边垂直,边长为整数,边平行坐标轴。要在多边形的点上放一些激光发射器和接收器。满足下列要求: 1发射器和接收器不能放置在同一点; 2发射器发出激光可以沿壁反射,最终到达一个接收器; 3发射器只能沿角平分线发射激光。求:最多可放置多少对发射器和接收器?点数4<=n<=100000Input第一行给出一个数字N,代表有多少个点. 下面N行,用来描述...原创 2018-07-30 20:54:05 · 333 阅读 · 0 评论 -
【poj 2777】 Count Color(同luogu1558色板游戏)
DescriptionChosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L cen...原创 2018-08-09 15:08:33 · 189 阅读 · 0 评论 -
【poj 1276】 Cash Machine 【Southeastern Europe 2002】
DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The machine uses exactly N distinct bill denominatio原创 2017-08-30 22:56:23 · 307 阅读 · 0 评论 -
【poj 1523】SPF 【Greater New York 2000】
DescriptionConsider the two networks shown below. Assuming that data moves around these networks only between directly connected nodes on a peer-to-peer basis, a failure of a single node, 3, in the原创 2017-09-10 20:28:56 · 445 阅读 · 0 评论 -
【poj 1258】 Agri-Net 【USACO 102】
DescriptionFarmer 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.Farmer John ord原创 2017-11-05 20:02:55 · 342 阅读 · 0 评论 -
【poj 1061】 青蛙的约会
Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总能碰到对方的。但是除非这两只青蛙在同一时间跳到同一点上,不然是永远都不可能碰面的。原创 2017-10-29 12:24:38 · 394 阅读 · 0 评论 -
【poj 1511】 Invitation Cards 【Central Europe 1998】
DescriptionIn 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, most of all, Antique原创 2017-10-16 16:18:31 · 327 阅读 · 0 评论 -
【poj 1274】 The Perfect Stall 【USACO 40】
DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the new barn are differen原创 2017-10-27 21:40:54 · 341 阅读 · 0 评论 -
【poj 2823】 Sliding Window
DescriptionAn array of size n ≤ 106 is given to you. There is a sliding window of sizek which is moving from the very left of the array to the very right. You can only see thek numbers in the wi原创 2017-10-13 23:05:59 · 240 阅读 · 0 评论 -
【poj 2299】 Ultra-QuickSort 【Waterloo local 2005.02.05】
DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seque原创 2017-10-13 21:13:57 · 362 阅读 · 0 评论 -
【poj 2478】 Farey Sequence
DescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 < a < b <= n and gcd(a,b) = 1 arranged in increasing order. The first few are原创 2017-10-11 22:16:26 · 426 阅读 · 0 评论 -
【poj 3268】 Silver Cow Party 【USACO 2007 February Silver】
DescriptionOne 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) unidirect原创 2017-10-10 14:58:02 · 338 阅读 · 0 评论 -
【poj 1330】 Nearest Common Ancestors 【Taejon 2002】
DescriptionA rooted tree is a well-known data structure in computer science and engineering. An example is shown below: In the figure, each node is labeled with an integer from {1, 2,...,16}.原创 2017-10-09 16:01:13 · 298 阅读 · 0 评论 -
【poj 1080】 Human Gene Functions 【Taejon 2001】
DescriptionIt is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, G, and T. Biologists have been intere原创 2017-10-09 14:28:24 · 269 阅读 · 0 评论 -
【poj 1050】 To the Max 【Greater New York 2001】
DescriptionGiven 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 of a rectangle原创 2017-10-05 11:34:37 · 305 阅读 · 0 评论 -
【poj 2407】 Relatives 【Waterloo local 2002.07.01】
DescriptionGiven n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such原创 2017-10-03 20:56:49 · 371 阅读 · 0 评论 -
【poj 2356】 Find a multiple 【Ural Collegiate Programming Contest 1999】
DescriptionThe input contains N natural (i.e. positive integer) numbers ( N <= 10000 ). Each of that numbers is not greater than 15000. This numbers are not necessarily different (so it may happen t原创 2017-10-02 20:21:38 · 318 阅读 · 0 评论 -
【poj 2115】 C Looooops 【CTU Open 2004】
DescriptionA Compiler Mystery: We are given a C-language style for loop of typefor (variable = A; variable != B; variable += C) statement;I.e., a loop which starts by setting variable to原创 2017-10-02 19:06:49 · 608 阅读 · 0 评论 -
【poj 1365】 Prime Land 【Central Europe 1997】
DescriptionEverybody in the Prime Land is using a prime base number system. In this system, each positive integer x is represented as follows: Let {pi}i=0,1,2,... denote the increasing sequence of原创 2017-09-30 09:45:29 · 325 阅读 · 0 评论 -
【poj 3641】 Pseudoprime numbers 【Waterloo Local Contest, 2007.9.23】
DescriptionFermat's theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). That is, if we raise a to the pth power and divide by p, the remainder is a. Some (but n原创 2017-09-28 15:55:07 · 385 阅读 · 0 评论 -
【poj 1236】Network of Schools 【IOI 1996】
DescriptionA number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the原创 2017-09-11 22:38:31 · 418 阅读 · 0 评论 -
【poj 2481】 Cows
DescriptionFarmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good. Farmer ...原创 2018-11-04 18:09:53 · 305 阅读 · 0 评论