
POJ
文章平均质量分 92
花雨就是花雨
最好的我还未等到~
展开
-
POJ1163--The Triangle数塔
动态规划......原创 2017-05-16 20:33:48 · 562 阅读 · 0 评论 -
POJ3624--Charm Bracelet(dp)
动态规划......原创 2017-05-14 22:15:55 · 482 阅读 · 0 评论 -
POJ2676--Sudoku(搜索)
搜索......原创 2017-05-15 21:54:34 · 326 阅读 · 0 评论 -
POJ2632--Crashing Robots(模拟)
Description In a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their destinations without crashing into each other. Of course, a原创 2017-09-03 21:18:24 · 400 阅读 · 0 评论 -
POJ1573--Robot Motion(模拟)
Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are原创 2017-09-04 17:59:35 · 398 阅读 · 0 评论 -
POJ3259--Wormholes(SPFA)
Do more with lessDescription While 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 it原创 2017-08-23 10:38:12 · 465 阅读 · 0 评论 -
POJ3349--Snowflake Snow Snowflakes(哈希)
Do more with lessDescription You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a原创 2017-08-23 16:47:30 · 539 阅读 · 1 评论 -
POJ2406--Power Strings(KMP变形)
Do more with lessDescription Given two strings a and b we define a*b to be their concatenation. For example, if a = “abc” and b = “def” then a*b = “abcdef”. If we think of concatenation as multiplica原创 2017-08-23 17:17:27 · 511 阅读 · 0 评论 -
POJ3295--Tautology(模拟)
Description WFF ‘N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N, C, E, p, q, r, s, t. A Well-formed formula (WFF) is any str原创 2017-09-03 18:19:56 · 409 阅读 · 0 评论 -
POJ2387--Til the Cows Come Home(dijkstra)
Description Bessie 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-10-09 16:49:08 · 429 阅读 · 0 评论 -
POJ3041--二分图最大匹配模板
#include <cstdio>#include <iostream>#include <cstring>const int MAXN = 510;int uN,vN;int g[MAXN][MAXN];int linker[MAXN];bool used[MAXN];bool dfs(int u){ for(int v = 1; v <= vN;v++) if(原创 2017-10-28 13:11:38 · 382 阅读 · 0 评论 -
POJ1273--Drainage Ditches(最大流)
Discussion Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regr原创 2017-10-24 20:24:59 · 420 阅读 · 0 评论 -
POJ1458--Common Subsequence(dp)
动态规划原创 2017-05-14 22:02:31 · 386 阅读 · 0 评论 -
POJ2524--Ubiquitous Religions(并查集)
并查集......原创 2017-05-14 23:19:50 · 456 阅读 · 0 评论 -
POJ3579--Median(二分)
二分......原创 2017-05-15 12:00:23 · 441 阅读 · 0 评论 -
POJ1753--Flip Game(枚举)
Do more with lessDescription Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each原创 2017-08-09 21:33:59 · 495 阅读 · 0 评论 -
POJ3691--Sky Code(容斥)
Discussion Stancu likes space travels but he is a poor software developer and will never be able to buy his own spacecraft. That is why he is preparing to steal the spacecraft of Petru. There is only原创 2017-08-04 20:58:45 · 454 阅读 · 0 评论 -
POJ1740--A New Stone Game(Nin变形)
Discussion Alice and Bob decide to play a new stone game.At the beginning of the game they pick n(1<=n<=10) piles of stones in a line. Alice and Bob move the stones in turn. At each step of the g原创 2017-07-29 11:59:40 · 558 阅读 · 0 评论 -
POJ2975--Nin(Nin博弈)
Discussion Nim is a 2-player game featuring several piles of stones. Players alternate turns, and on his/her turn, a player’s move consists of removing one or more stones from any single pile. Play e原创 2017-07-29 10:36:54 · 548 阅读 · 0 评论 -
POJ1067--取石子游戏(威佐夫博弈)
Discussion 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。Input 输入包含若干行,表示若干种石子的初始情况,其中每一行包含两个非原创 2017-07-29 10:02:41 · 420 阅读 · 0 评论 -
POJ1789--Truck History(最小生成树)
Discussion Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each原创 2017-07-29 09:54:11 · 728 阅读 · 0 评论 -
POJ2586--Y2K Accounting Bug(贪心)
Discussion Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they remember is that MS Inc. posted a原创 2017-07-29 09:45:19 · 474 阅读 · 0 评论 -
POJ2192--Zipper(dp)
Description Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrarily, but原创 2017-05-31 15:00:38 · 423 阅读 · 0 评论 -
POJ1700--Crossing River(贪心)
Do more with lessDescription A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangement must be arranged in or原创 2017-05-14 21:02:19 · 533 阅读 · 0 评论 -
POJ2376--Cleaning Shifts(贪心)
贪心原创 2017-05-13 17:43:20 · 677 阅读 · 0 评论 -
POJ1088--滑雪(DP+搜索)
DP+搜索的简单组合原创 2017-05-31 14:26:43 · 465 阅读 · 0 评论 -
POJ3068--"Shortest" pair of paths(最小费用流)
Discussion A chemical company has an unusual shortest path problem. There are N depots (vertices) where chemicals can be stored. There are M individual shipping methods (edges) connecting pairs o原创 2017-10-26 21:26:14 · 505 阅读 · 0 评论