
POJ
文章平均质量分 74
spongewxy
这个作者很懒,什么都没留下…
展开
-
POJ 1185 炮兵阵地
Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示:如果在地图中的灰色所标识的平原上部署一支炮兵部队,则图中的黑色的网格表原创 2015-06-21 15:02:44 · 1187 阅读 · 0 评论 -
POJ 2836 Rectangular Covering
n points are given on the Cartesian plane. Now you have to use some rectangles whose sides are parallel to the axes to cover them. Every point must be covered. And a point can be covered by several re原创 2015-09-07 21:33:57 · 471 阅读 · 0 评论 -
POJ 2327 Dumb Bones
DescriptionYou are trying to set up a straight line of dominos, standing on end, to be pushed over later for your entertainment. (Sure, it seems pointless to set something up only to knock it down原创 2015-09-15 21:50:28 · 925 阅读 · 0 评论 -
POJ 2096 Collecting Bugs(0)
DescriptionIvan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a new program, he classifies all possib原创 2015-09-19 11:32:33 · 367 阅读 · 0 评论 -
POJ 3744 Scout YYF I
DescriptionYYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. After overcoming a series difficulties, YYF is now at the start of enemy's famous原创 2015-09-19 10:40:34 · 462 阅读 · 0 评论 -
ZOJ 3329 One Person Game(1)
DescriptionThere is a very simple and interesting one-person game. You have 3 dice, namelyDie1, Die2 and Die3. Die1 hasK1 faces. Die2 has K2 faces.Die3 has K3 faces. All the dice are fair di原创 2015-09-19 16:26:04 · 435 阅读 · 0 评论 -
POJ 2151 Check the difficulty of problems
DescriptionOrganizing a programming contest is not an easy job. To avoid making the problems too difficult, the organizer usually expect the contest result satisfy the following two terms: 1. Al原创 2015-09-19 20:27:41 · 428 阅读 · 0 评论 -
POJ 3071 Football(0)
DescriptionConsider a single-elimination football tournament involving 2n teams, denoted 1, 2, …, 2n. In each round of the tournament, all teams still in the tournament are placed in a list in o原创 2015-10-10 17:58:25 · 386 阅读 · 0 评论 -
ZOJ 3505 Yet Another Set of Numbers
You are given yet another set of numbers. The numbers in this set obey these rules:Each number will start with a non-zero digit.Each number contains at most N digits and only 0, 1, 2 and 3 are availab原创 2015-12-12 22:09:01 · 388 阅读 · 0 评论 -
POJ 3208 Apocalypse Someday
DescriptionThe number 666 is considered to be the occult “number of the beast” and is a well used number in all major apocalypse themed blockbuster movies. However the number 666 can’t always be used i原创 2015-12-12 11:54:00 · 779 阅读 · 0 评论 -
ZOJ 3293 Simple Sequence
Recently, watashi finds a simple sequence S = {si} i >= 1 in a book. This sequence is determined by the following rules:For each si, si is a positive integer.It's an increasing sequence. For each i >=原创 2015-12-13 13:42:06 · 518 阅读 · 0 评论 -
POJ 3411 Paid Roads
DescriptionA network of m roads connects N cities (numbered from 1 toN). There may be more than one road connecting one city with another. Some of the roads are paid. There are two ways to pay原创 2015-09-12 17:43:59 · 385 阅读 · 0 评论 -
POJ 2088 Long Night of Museums
DescriptionThe city of Vienna is called the "City of Culture" because (among other things) there are more than 100 museums in the city. As a consequence, it is very difficult (and very expensive)原创 2015-09-13 11:47:12 · 865 阅读 · 0 评论 -
POJ 3254 Corn Fields
DescriptionFarmer John has purchased a lush new rectangular pasture composed of M byN (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of square原创 2015-06-22 12:07:32 · 494 阅读 · 0 评论 -
POJ 2441 Arrange the Bulls
DescriptionFarmer Johnson's Bulls love playing basketball very much. But none of them would like to play basketball with the other bulls because they believe that the others are all very weak. Farme原创 2015-06-22 10:31:54 · 478 阅读 · 0 评论 -
ZOJ 3471 Most Powerful
Recently, 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 a lot of power原创 2015-06-23 12:00:13 · 547 阅读 · 0 评论 -
POJ 3311 Hie with the Pie
DescriptionThe Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hire only one driver to do the deliveries原创 2015-06-23 09:16:31 · 442 阅读 · 0 评论 -
POJ 2288 Islands and Bridges
DescriptionGiven a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, the原创 2015-06-23 11:11:50 · 401 阅读 · 0 评论 -
POJ 1064 Cable master
Cable masterTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 29484 Accepted: 6231DescriptionInhabitants of the Wonderland have decided to hold a regional原创 2015-07-28 11:28:02 · 283 阅读 · 0 评论 -
POJ 2541 Binary Witch
Once upon a time in the silent depths of digital forests there lived a Binary Witch. She was able to forecast weather, telling for any day in the future whether it will be rainy or sunny.Her mag原创 2015-09-07 18:05:13 · 482 阅读 · 0 评论 -
POJ 2436 Disease Management
DescriptionAlas! A set of D (1 <= D <= 15) diseases (numbered 1..D) is running through the farm. Farmer John would like to milk as many of his N (1 <= N <= 1,000) cows as possible. If the milked c原创 2015-09-07 16:23:36 · 586 阅读 · 0 评论 -
POJ 1699 Best Sequence
The twenty-first century is a biology-technology developing century. One of the most attractive and challenging tasks is on the gene project, especially on gene sorting program. Recently we know that原创 2015-09-07 22:36:48 · 501 阅读 · 0 评论 -
POJ 2686 Traveling by Stagecoach
Once upon a time, there was a traveler. He plans to travel using stagecoaches (horse wagons). His starting point and destination are fixed, but he cannot determine his route. Your job in this prob原创 2015-09-13 10:09:12 · 392 阅读 · 0 评论 -
HDU 3943 K-th Nya Number
Problem Description Arcueid likes nya number very much. A nya number is the number which has exactly X fours and Y sevens(If X=2 and Y=3 , 172441277 and 47770142 are nya numbers.But 14777 is not a ny原创 2015-12-13 14:44:39 · 560 阅读 · 0 评论