最新 最热

HDOJ/HDU 5686 Problem B(斐波拉契+大数~)

Problem Description 度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。...

2021-01-21
1

HDOJ/HDU 1321 Reverse Text(倒序输出~)

Problem Description In most languages, text is written from left to right. However, there are other languages where text is read and written from right to lef...

2021-01-21
1

HDOJ/HDU 1062 Text Reverse(字符串翻转~)

Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words a...

2021-01-21
1

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

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

2021-01-21
1

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
1

HDOJ 1214 圆桌会议

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

2021-01-21
1

HDOJ 1412 {A} + {B}

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

2021-01-20
1