1.三个for循环 直接全部过,要注意越界问题,用long 2.递归int f(int now,int target){},这道题要注意越界,用long public static long f(long now,long target) { if(now>target){return Integer.MAX_VALUE;} if(now==target){return 0;} int l=f(now*a,target); int r=f(now*b,target); int temp=Math.min(l,r); i...