C语言6.12

Time Limit: 1000ms
Memory Limit: 32768KB
64-bit integer IO format: %lld      Java class name: Main

Description

的值,其中a是一个数字,n表示a的位数,例如:

2+22+222+2222+22222(此时n=5)

Input

两个整数a和n。

Output

计算出的Sn的值
请注意行尾输出换行。

Sample Input

2 5

Sample Output

24690

Author

Admin
Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .