#include<stdio.h>
#include<math.h>
int main()
{
int a,n;
scanf("%d%d",&a,&n);
int i,sum=0;
for(i=2;i<=n;i++)
{
a=a/pow(10,i-2)+a*10;
sum=a+sum;
}
printf("%d",sum+a%10);
return 0;
}
标签:10,a%,int,pow,sum,include,10.16 From: https://blog.51cto.com/u_15758636/5760526