#F. B - AtCoder Condominium

    传统题 1000ms 256MiB

B - AtCoder Condominium

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

B - AtCoder Condominium

Score : $200$ points

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:

NN KK

Output

Print the answer.


1 2
203

The condominium has two rooms $101$ and $102$. We have $101+102=203$.


3 3
1818

2025春季ATC码力训练基础营第十二次比赛

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-6-14 13:00
结束于
2025-6-14 14:30
持续时间
1.5 小时
主持人
参赛人数
4