public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 3;//
int m = 3;//这个是个数
int result = a;
int sum = a;
for (int i = 1; i < m; i++) {
sum = 10 * sum + a;
result += sum;
}
System.out.println(result);
}
时间: 2024-10-13 10:43:21