测试 #include<bits/stdc++.h> using namespace std; int n,m,step; string nn; int len,nex; bool dfs(unsigned long long x) { unsigned ; for(unsigned long long i=x;i;i/=n) a=a*n+i%n; nex=x+a; return x==a; } unsigned long long zf(char a) { '; ; } int main()…
输入输出样例 输入样例#1: 10 87 输出样例#1: STEP=4 import java.util.Scanner; public class 回文数2 { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int n = sc.nextInt(); String m = sc.next(); int [] num = new int [51]; int [] num1 = new in…