由 hzh, 7 四月, 2023 用递归的思想解决frogJump问题 ublic class qingwa { /* 一共有n个台阶,一只青蛙每次只能跳一阶或是两阶,那么一共有多少种跳到顶端的方案?例如n=2,那么一共有两种方案,一次性跳两阶或是每次跳一阶。 文章标签 java
由 hzh, 7 四月, 2023 java求水仙花数 public class 水仙花数 { public static void main(String[] args) { //从0到1000的水仙花数 for (int i = 0; i < 1000; i++){ //水仙花数核心代码 int i1 = i / 100; int 文章标签 java