Fj的字符串 蓝桥杯 java
public class FJString {
static int count = 0;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
count = scanner.nextInt();
System.err.println("结果:" + computer(0, ""));
}
public static String computer(int n, String result) {
if (n == count) {
return result;
}
result =result+(char)('A'+n)+result;
return computer(n + 1, result);
}
}