最新 最热

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

Codeforce 322E Ciel the Commander (点分治)

Now Fox Ciel becomes a commander of Tree Land. Tree Land, like its name said, has n cities connected by n - 1 undirected roads, and for any two cities there alw...

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

DFS--POJ 1190 生日蛋糕

Description 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri, 高度为Hi的圆柱。当i < M时,要求Ri > Ri+1且Hi > Hi+1。 由于要...

2020-10-28
1

UVA-1 #1. A + B Problem

给你两个数 aa 和 bb,请输出他们的和。输入格式一行,两个用空格隔开的整数 aa 和 bb。输出格式一个整数,表示 a+ba+b。样例一input2 3output5限制与约定0≤a,b≤1090≤a,b≤109时间限制:1s1s空间限制:256MB256MB下...

2020-10-28
1

HDU-1857 畅通工程再续

Problem Description 相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实...

2020-10-28
1

HDU2066:一个人的旅行(Dijkstra)

Problem Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,0),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多...

2020-10-28
1

hdu2544最短路

在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?...

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