Problem1867--特殊a串数列求和

1867: 特殊a串数列求和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

给定两个均不超过9的正整数a和n,要求编写程序求a+aa+aaa++⋯+aa⋯a(n个a)之和。

Input

输入在一行中给出不超过9的正整数a和n。

Output

在一行中按照“s = 对应的和”的格式输出。

Sample Input Copy

2 3

Sample Output Copy

s = 246

Source/Category

279