AC

耦园采雪  •  2年前


include <stdio.h>

int main() {

int a, n, x = 0, y, z, m = 0;

scanf("%d%d", &a, &n);
z = a;
y = a;
for (int i = 1; i <= n; i++) {
	x = x + y;
	y = y * 10 + a;
}
printf("%d", x);
return 0;

}


评论:

请先登录,才能进行评论