AtCoder Condominium

AtCoder
IDabc203_b
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "AtCoder Condominium",
    "description": {
      "content": "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-d",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc203_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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.\nHere, both $N$ and $K$ are one-d...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments