Welcome To SDIBT ACM-ICPC Online Judge

VIRTUAL JUDGE Recent Contest F.A.Qs Forum Home ProblemSet Status Ranklist Contest LoginRegister Exam
Problem 3662. -- (c6循环 c10一维数组)(必做)求:s=a+aa+aaa+aaaa.......

(c6循环 c10一维数组)(必做)求:s=a+aa+aaa+aaaa.......

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 2987  Solved: 1892
[Submit][Status][Forum]

Description

输入整数n和a,输出a+aa+aaa+aaaa......

n表示项数

n为不大于9的正整数,a为不大于8的正整数

比如:n=3,a=4,

s=4+44+444

Input

输入n和a,都为int型

先输入n,再输入a

Output

输出f,为int型

Sample Input

3 4

Sample Output

492

HINT

Source

[Submit][Status][Forum]

HOME Back

한국어 中文 English
All Copyright Reserved 2008-2010 SDIBT TEAM
GPL2.0 2003-2010 HUSTOJ Project TEAM
Anything about the Problems, Please Contact Admin:admin