
poj
文章平均质量分 74
looooooogn
QQ : 2173048590
展开
-
Picnic Planning POJ - 1639 度限制生成树
The Contortion Brothers are a famous set of circus clowns, known worldwide for their incredible ability to cram an unlimited number of themselves into even the smallest vehicle. During the off-season,...原创 2018-08-25 20:51:46 · 215 阅读 · 0 评论 -
Network POJ - 3417 LCA+树上差分
Yixght is a manager of the company called SzqNetwork(SN). Now she’s very worried because she has just received a bad news which denotes that DxtNetwork(DN), the SN’s business rival, intents to attack ...原创 2018-10-05 08:57:34 · 202 阅读 · 0 评论 -
POJ - 3614 贪心
To avoid unsightly burns while tanning, each of the C (1 ≤ C ≤ 2500) cows must cover her hide with sunscreen when they’re at the beach. Cow i has a minimum and maximum SPF rating (1 ≤ minSPFi ≤ 1,000;...原创 2018-08-03 09:55:25 · 202 阅读 · 0 评论 -
POJ - 3764 XOR&&dfs 01字典树
In an edge-weighted tree, the xor-length of a path p is defined as the xor sum of the weights of edges on p:{xor}length(p)=\oplus{e \in p}w(e) ⊕ is the xor operator.We say a path the xor-longest ...原创 2018-08-03 20:12:45 · 127 阅读 · 0 评论 -
Sequence POJ - 2442 Heap (堆)应用
Given 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 this kind of sequences. Th...原创 2018-08-05 19:45:12 · 174 阅读 · 0 评论 -
Visible Lattice Points POJ - 3090 euler 函数
A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin if the line from (0, 0) to (x, y) does not pass throug...原创 2018-08-05 22:59:52 · 135 阅读 · 0 评论 -
Sudoku POJ - 2676 DFS
Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1 to 9. The othe...原创 2018-08-06 16:12:40 · 141 阅读 · 0 评论 -
The Luckiest number POJ - 3696 数学 欧拉函数
Chinese people think of ‘8’ as the lucky digit. Bob also likes digit ‘8’. Moreover, Bob has his own lucky number L. Now he wants to construct his luckiest number which is the minimum among all positiv...原创 2018-08-06 19:57:53 · 171 阅读 · 0 评论 -
Lost Cows POJ - 2182 线段树维护
N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood ‘watering hole’ and drank a few too many beers before dinn...原创 2018-08-07 09:35:33 · 114 阅读 · 0 评论 -
Sticks POJ - 1011 dfs+剪枝
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had orig...原创 2018-08-07 16:08:25 · 169 阅读 · 0 评论 -
Telephone Lines POJ - 3662 Dijkstra+ 二分答案
Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay for some of the cables required to connect his farm to the phone system....原创 2018-08-07 21:22:25 · 224 阅读 · 0 评论 -
Strange Way to Express Integers POJ - 2891 数论
Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choose k different positive integers a1, a2, …, ak. F...原创 2018-08-16 09:39:32 · 173 阅读 · 0 评论 -
Parity game POJ - 1733 带权并查集
Now and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a continuous subsequence (for example the subsequence from the t...原创 2018-08-17 14:59:48 · 200 阅读 · 0 评论 -
Tree POJ - 1741 点分治
Give a tree with n vertices,each edge has a length(positive integer less than 1001). Define dist(u,v)=The min distance between node u and v. Give an integer k,for every pair (u,v) of vertices is ca...原创 2018-08-17 17:23:51 · 141 阅读 · 0 评论 -
CEOI 1999 Sightseeing trip POJ - 1734 Floyd 变形
There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attractions, sightseeing the town. To earn as much as possible from this attraction...原创 2018-08-18 22:44:23 · 548 阅读 · 0 评论 -
Desert King POJ - 2728 最优比率生成树
David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his country to bring water to every village. Villages which are co...原创 2018-08-23 20:40:51 · 138 阅读 · 0 评论 -
Raid POJ - 3714 分治求最近点对
After successive failures in the battles against the Union, the Empire retreated to its last stronghold. Depending on its powerful defense system, the Empire repelled the six waves of Union's attack. ...原创 2018-10-18 21:02:27 · 178 阅读 · 0 评论