#abc203b. B - AtCoder Condominium
B - AtCoder Condominium
Score : points
问题描述
在 AtCoder 公寓中,有 层楼,分别称为第1层到第 层。每层楼有 个房间,依次称为第1间房到第 间房。
这里, 和 都是一位整数,且第 层的第 个房间的房间号为 i0j
。例如,第1层的第2个房间的房间号为 。
身为经理的高桥对公寓中所有房间的房间号之和产生了兴趣,这里的每个房间号都被视为一个三位整数。请计算这个总和。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
A condominium AtCoder has floors, called the -st floor through the -th floor. Each floor has rooms, called the -st room through the -th room.
Here, both and are one-digit integers, and the -th room on the -th floor has the room number i0j
. For example, the -nd room on the -st floor has the room number .
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
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
1 2
Sample Output 1
203
The condominium has two rooms and . We have .
Sample Input 2
3 3
Sample Output 2
1818
update @ 2024/3/10 09:15:21