AtCoder Beginner Contest 203(Sponsored by Panasonic)
翻译中…
Problem Statement
翻译中…
A condominium AtCoder has $N$ floors, called the $1$-st floor through the $N$-th floor. Each floor has $K$ rooms, called the $1$-st room through the $K$-th room.
翻译中…
Here, both $N$ and $K$ are one-digit integers, and the $j$-th room on the $i$-th floor has the room number i0j. For example, the $2$-nd room on the $1$-st floor has the room number $102$.
翻译中…
Takahashi, the manager, got interested in the sum of the room numbers of all rooms in the condominium, where each room number is seen as a three-digit integer. Find this sum.
翻译中…
Constraints
翻译中…
$1 \leq N,K \leq 9$$N$and$K$are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N K
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
1 2
Output #1
203
The condominium has two rooms $101$ and $102$. We have $101+102=203$.
Input #2
3 3
Output #2
1818
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。