#include<stdio.h> int main() { int a,s,b,i,temp; temp=s=0; scanf("%d %d",&b,&a); //输入有几个数要相加 for(i=1;i<=a;i++) { temp=temp*10+b; s=s+temp; } printf("%d",s); return 0; }