Bulletin Board

AtCoder
IDaising2019_a
Time2000ms
Memory256MB
Difficulty
It has been decided that a programming contest sponsored by company A will be held, so we will post the notice on a bulletin board. The bulletin board is in the form of a grid with $N$ rows and $N$ columns, and the notice will occupy a rectangular region with $H$ rows and $W$ columns. How many ways are there to choose where to put the notice so that it completely covers exactly $HW$ squares? ## Constraints * $1 \leq H, W \leq N \leq 100$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $N$ $H$ $W$ [samples]
Samples
Input #1
3
2
3
Output #1
2

There are two ways to put the notice, as follows:

###   ...
###   ###
...   ###

Here, `#` represents a square covered by the notice, and `.` represents a square not covered.
Input #2
100
1
1
Output #2
10000
Input #3
5
4
2
Output #3
8
API Response (JSON)
{
  "problem": {
    "name": "Bulletin Board",
    "description": {
      "content": "It has been decided that a programming contest sponsored by company A will be held, so we will post the notice on a bulletin board. The bulletin board is in the form of a grid with $N$ rows and $N$ co",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "aising2019_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "It has been decided that a programming contest sponsored by company A will be held, so we will post the notice on a bulletin board.\nThe bulletin board is in the form of a grid with $N$ rows and $N$ co...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments