1052: 数列求和4
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n=cin.nextInt();int item=cin.nextInt();int sum=0,ans=item;for(int i=1;i<=n;i++){
sum+=ans;ans=ans*10+item;}System.out.printf("%d",sum);}
}