最新 最热

HDOJ/HDU 1241 Oil Deposits(经典DFS)

Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangula...

2021-01-21
1

HDOJ/HDU 1180 诡异的楼梯(经典BFS-详解)

Problem Description Hogwarts正式开学以后,Harry发现在Hogwarts里,某些楼梯并不是静止不动的,相反,他们每隔一分钟就变动一次方向. 比如下面的例子里,一开始楼梯在竖直方向,一分钟以后它移动到了水平方向,再过一分...

2021-01-21
0

HDOJ 1012 u Calculate e

Problem Description A simple mathematical formula for e is

2021-01-21
1

HDOJ 1285 确定比赛名次(拓扑排序)

Problem Description 有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P...

2021-01-21
1

HDOJ 1016 Prime Ring Problem素数环【深搜】

Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in t...

2021-01-21
1

HDOJ 2802 F(N)

Problem Description Giving the N, can you tell me the answer of F(N)?Input Each test case c

2021-01-21
0

HDOJ 1214 圆桌会议

Problem Description HDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到的问题.每当面临自己解决不了的问题时,他们就会围坐在一张圆形的桌子旁进行交流,经过大家的讨论...

2021-01-21
1

HDOJ 3466 Proud Merchants

Problem Description Recently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, t...

2021-01-21
1

HDOJ 1412 {A} + {B}

Problem Description 给你两个集合,要求{A} + {B}. 注:同一个集合中不会有两个相同的元素.

2021-01-20
0

HDOJ 1210 Eddy's 洗牌问题

Problem Description Eddy是个ACMer,他不仅喜欢做ACM题,而且对于纸牌也有一定的研究,他在无聊时研究发现,如果他有2N张牌,编号为1,2,3..n,n+1,..2n。这也是最初的牌的顺序。通过一次洗牌可以把牌的序列变为n+1,1,n+2,...

2021-01-20
0