POJ初级
来一块提拉米苏
加油
展开
-
POJ 1837 Balance(DP)
题目:POJ 1837 Balance题意:给一个天平,天平的左右臂长都为15,现在给c个挂钩位置和g个质量的勾码,求有几种方式放勾码可以使天平保持平衡。解析:用到DP,所以要先弄清DP中的i和j是干什么用的,i的作用是用于存用了几个勾码,j的作用是用于存状态,比如都放在一边的头上,就是最大的之15*20*20=6000,当j=6000时处于平衡,所以要开6000*2=12000的数组...原创 2016-10-17 21:04:33 · 281 阅读 · 0 评论 -
POJ 1905Expanding Rods(计算二分)
Expanding RodsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 15693 Accepted: 4165DescriptionWhen a thin rod of length L is heated n degrees, it expands原创 2016-12-07 20:28:01 · 284 阅读 · 0 评论 -
POJ 3258River Hopscotch(二分计算)
River HopscotchTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12257 Accepted: 5254DescriptionEvery year the cows hold an event featuring a peculiar v原创 2016-12-05 21:45:49 · 246 阅读 · 0 评论 -
POJ 2442Sequence
SequenceTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 9144 Accepted: 3046DescriptionGiven m sequences, each contains n non-negative integer. Now we ma原创 2016-11-22 20:35:58 · 407 阅读 · 0 评论 -
POJ 3020Antenna Placement(二分图的应用)
Antenna PlacementTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9108 Accepted: 4504DescriptionThe Global Aerial Research Centre has been allotted the t原创 2016-11-22 16:49:35 · 327 阅读 · 0 评论 -
POJ 3122Pie(二分计算)
PieTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16040 Accepted: 5452 Special JudgeDescriptionMy birthday is coming up and traditionally I'm servi原创 2016-11-30 21:45:03 · 197 阅读 · 0 评论 -
POJ 2373Monthly Expense(二分计算)
Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 23500 Accepted: 9148DescriptionFarmer John is an astounding accounting wizard and has r原创 2016-12-01 20:58:57 · 320 阅读 · 0 评论 -
POJ 1019Number Sequence(组合数学)
Number SequenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 38785 Accepted: 11258DescriptionA single positive integer i is given. Write a program to原创 2016-12-12 21:23:32 · 412 阅读 · 0 评论 -
POJ 3041Asteroids(二分图)
Language:AsteroidsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 21046 Accepted: 11430DescriptionBessie wants to navigate her spaceship through a d原创 2016-11-21 20:19:26 · 301 阅读 · 0 评论 -
POJ 1573 Robot Motion(BFS)
Robot MotionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13107 Accepted: 6353DescriptionA robot has been programmed to follow the instr原创 2016-10-24 20:33:55 · 222 阅读 · 0 评论 -
POJ 2251 Dungeon Master(BFS)
Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 27768 Accepted: 10860DescriptionYou are trapped in a 3D dungeon and need to find the quick原创 2016-10-24 20:48:34 · 220 阅读 · 0 评论 -
POJ 3080 Blue Jeans(暴力 + 串)
Blue JeansTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17052 Accepted: 7556DescriptionThe Genographic Project is a research partnership between IBM a原创 2016-10-24 20:59:53 · 288 阅读 · 0 评论 -
POJ 2503 Babelfish(hash + map)
BabelfishTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 41466 Accepted: 17610DescriptionYou have just moved from Waterloo to a big city. The people her原创 2016-09-26 20:31:59 · 357 阅读 · 0 评论 -
POJ 1442Black Box(优先队列)
Black BoxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11966 Accepted: 4908DescriptionOur Black Box represents a primitive database. It can save an in原创 2016-11-24 21:03:50 · 446 阅读 · 0 评论 -
POJ 2513Colored Sticks(????)
Colored SticksTime Limit: 5000MS Memory Limit: 128000KTotal Submissions: 36450 Accepted: 9546DescriptionYou are given a bunch of wooden sticks. Each endpoint of e原创 2016-12-26 19:44:33 · 223 阅读 · 0 评论 -
POJ 3009Curling 2.0(DFS)
Curling 2.0Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 19256 Accepted: 7874DescriptionOn Planet MM-21, after their Olympic games this year, curlin原创 2017-01-04 20:40:04 · 306 阅读 · 0 评论 -
POJ 1260Pearls(DP)
PearlsTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 8997 Accepted: 4512 DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, p...原创 2016-12-16 19:42:20 · 307 阅读 · 0 评论 -
POJ 2187Beauty Contest(凸包)
Beauty ContestTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 36032 Accepted: 11174DescriptionBessie, Farmer John's prize cow, has just won first place原创 2017-01-16 15:45:30 · 388 阅读 · 0 评论 -
POJ 1416Shredding Company(简单搜索技巧和剪枝)
Shredding CompanyTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5950 Accepted: 3265DescriptionYou have just been put in charge of developing a new shre原创 2017-02-07 10:22:06 · 367 阅读 · 0 评论 -
POJ 1845Sumdiv(数论)
SumdivTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20041 Accepted: 5060DescriptionConsider two natural numbers A and B. Let S be the sum of all natur原创 2017-01-14 09:21:44 · 289 阅读 · 0 评论 -
POJ 3292Semi-prime H-numbers(数论)
Semi-prime H-numbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9138 Accepted: 4045DescriptionThis problem is based on an exercise of David Hilber原创 2017-01-14 10:07:50 · 305 阅读 · 0 评论 -
POJ 2635The Embarrassed Cryptographer(数论-素数筛)
The Embarrassed CryptographerTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14461 Accepted: 3954DescriptionThe young and very promising cryptographer O原创 2017-01-15 14:32:47 · 453 阅读 · 0 评论 -
POJ 1265Area(几何应用)
AreaTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6426 Accepted: 2815DescriptionBeing well known for its highly innovative products, Merck would defin原创 2017-01-14 16:43:08 · 257 阅读 · 0 评论 -
POJ 2031Building a Space Station(叉积点积的应用 )
Building a Space StationTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 8104 Accepted: 3895DescriptionYou are a member of the space station engineering原创 2017-01-13 14:54:40 · 359 阅读 · 0 评论 -
POJ 1942Paths on a Grid(组合数学)
Paths on a GridTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 25192 Accepted: 6289DescriptionImagine you are attending your math lesson at school. Once原创 2016-12-14 21:29:55 · 285 阅读 · 0 评论 -
POJ 2049Tautology(模拟)
TautologyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12454 Accepted: 4738DescriptionWFF 'N PROOF is a logic game played with dice. Each die has si原创 2016-12-20 20:31:48 · 260 阅读 · 0 评论 -
POJ 1850Code(组合数学)
CodeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 9562 Accepted: 4571DescriptionTransmitting and memorizing information is a task that requires differ原创 2016-12-29 20:24:20 · 320 阅读 · 0 评论 -
POJ 3552Round Numbers(组合数学)
Round NumbersTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12657 Accepted: 4861DescriptionThe cows, as you know, have no fingers or thumbs and thus原创 2016-12-30 20:33:19 · 328 阅读 · 0 评论 -
POJ 2002 Squares(hash)
SquaresTime Limit: 3500MS Memory Limit: 65536KTotal Submissions: 19205 Accepted: 7412DescriptionA square is a 4-sided polygon whose sides have equal length and ad原创 2016-10-24 21:08:11 · 231 阅读 · 0 评论 -
POJ 2996Help Me with the Game(模拟)
Help Me with the GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4506 Accepted: 2847DescriptionYour task is to read a picture of a chessboard positi原创 2016-10-24 21:20:03 · 258 阅读 · 0 评论 -
POJ 2506Tiling(大数)
TilingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9413 Accepted: 4480DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?原创 2016-10-26 21:26:40 · 392 阅读 · 0 评论 -
POJ 1258Agri-Net(最小生成树)
Agri-NetTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 54129 Accepted: 22477DescriptionFarmer John has been elected mayor of his town! One of his campa原创 2016-11-12 16:50:25 · 198 阅读 · 0 评论 -
POJ 1753Flip Game(暴力+Dfs)
Flip GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 41388 Accepted: 17971DescriptionFlip game is played on a rectangular 4x4 field with two-sided p原创 2016-11-14 17:28:39 · 273 阅读 · 0 评论 -
POJ 3026Borg Maze(DFS + 最小生成树)
Borg MazeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13516 Accepted: 4394DescriptionThe Borg is an immensely powerful race of enhanced humanoids fro原创 2016-11-15 17:04:56 · 294 阅读 · 0 评论 -
POJ 3687Labeling Balls(逆序拓扑排序)
Labeling BallsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14115 Accepted: 4101DescriptionWindy has N balls of distinct weights from 1 unit to N原创 2016-11-17 17:31:57 · 316 阅读 · 0 评论 -
POJ 1094Sorting It All Out(拓扑排序)
Sorting It All OutTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 33756 Accepted: 11806DescriptionAn ascending sorted sequence of distinct values is one原创 2016-11-16 20:34:37 · 222 阅读 · 0 评论 -
POJ 2531Network Saboteur(dfs+搜索剪枝)
Network SaboteurTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12201 Accepted: 5878DescriptionA university network is composed of N computers. System a原创 2016-11-28 21:55:17 · 259 阅读 · 0 评论 -
POJ 2676Sudoku(Dfs+搜索剪枝)
SudokuTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 18995 Accepted: 9143 Special JudgeDescriptionSudoku is a very simple task. A square table with原创 2016-11-28 21:02:12 · 215 阅读 · 0 评论 -
POJ 1129Channel Allocation(四色+dfs搜索剪枝)
Channel AllocationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 14797 Accepted: 7526DescriptionWhen a radio station is broadcasting over a very large原创 2016-11-29 20:12:18 · 322 阅读 · 0 评论 -
POJ 1328 Radar Installation
Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 77830 Accepted: 17412DescriptionAssume the coasting is an infinite straight line. Land原创 2016-09-28 20:03:59 · 202 阅读 · 0 评论