mathematician专题

J - Junior Mathematician Gym - 102452J(数位DP)

Number theory is a branch of pure mathematics devoted primarily to the study of the integers and integer-valued functions. German mathematician Carl Friedrich Gauss said, “Mathematics is the queen of

20180520 -DP1 K - The Priest Mathematician

忙活了一天六级口语,考的还是很凉...今天主要看了这个汉诺塔的题目,题意: 4根柱子的汉诺塔,汉诺塔题目的变形,有4根柱子,可以把顶部的k个盘子移到最后的柱子上,然后按照汉诺塔,问最后走的最小步数。 思路: 一开始看了看以前的汉诺塔问题,递归。而这个汉诺塔问题主要是找规律了,看了好久也没找到,最后看了题解,感觉遇到这种题目,自己很难做出来,还需要加强! 代码: import java