1500: 数列串和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:63
Solved:30
Description
给定两个均不超过9的正整数a和n,编程计算a+aa+aaa++⋯+aa⋯aa(n个a)数列串之和。
Input
一行,输入整数a和n(1<=a,n=9)
Output
一行,输出题意所示的数列串之和。
Sample Input Copy
3 4
Sample Output Copy
3702