最新 最热

图论--网络流--最大流 POJ 2289 Jamie's Contact Groups (二分+限流建图)

Jamie is a very popular girl and has quite a lot of friends, so she always keeps a very long contact list in her cell phone. The contact list has become so long...

2020-10-28
1

图论--网络流--最小割 HDU 2485 Destroying the bus stations(最短路+限流建图)

Gabiluso is one of the greatest spies in his country. Now he’s trying to complete an “impossible” mission ----- to make it slow for the army of City Colugu to ...

2020-10-28
1

图论--网络流--最大流 HDU 2883 kebab(离散化)

Problem DescriptionAlmost everyone likes kebabs nowadays (Here a kebab means pieces of meat grilled

2020-10-28
1

CodeForces - 1245A Good ol' Numbers Coloring (思维)

In this way, each nonnegative integer gets one of two colors. For example, if a=3, b=5, then the colors of the numbers (in the order from 0) are: white (0), b...

2020-10-28
1

POJ 3241Object Clustering曼哈顿距离最小生成树

We have N (N ≤ 10000) objects, and wish to classify them into several groups by judgement of their resemblance. To simply the model, each object has 2 indexes a...

2020-10-28
1

Extended Traffic LightOJ - 1074

Dhaka city is getting crowded and noisy day by day. Certain roads always remain blocked in congestion. In order to convince people avoid shortest routes, and he...

2020-10-28
1

DP 60题 -2 HDU1025 Constructing Roads In JGShining's Kingdom

JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines. Half of these cities are rich in resource ...

2020-10-28
1

CodeForces - 1058D D. Vasya and Triangle

D. Vasya and Triangle time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasya has got three integers...

2020-10-28
1

CodeForces 1058C C. Vasya and Golden Ticket

C. Vasya and Golden Ticket time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Recently Vasya found a ...

2020-10-28
1

CodeForces - 1047A

A. Little C Loves 3 I time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Little C loves number «3» ve...

2020-10-28
1