Black Square

AtCoder
IDabc441_a
Time2000ms
Memory256MB
Difficulty
There is a grid with $10^{100}$ rows and $10^{100}$ columns. In what follows, the cell at the $i$\-th row from the top and $j$\-th column from the left is denoted as cell $(i,j)$. In this grid, only the $100\times 100$ region with cell $(P,Q)$ as the top-left cell is painted black, and all other cells are painted white. Determine whether cell $(X,Y)$ is painted black. ## Constraints * $1 \leq P,Q,X,Y \leq 10000$ * $P,Q,X,Y$ are integers. ## Input The input is given from Standard Input in the following format: $P$ $Q$ $X$ $Y$ [samples]
Samples
Input #1
3 3
5 10
Output #1
Yes

The $100\times 100$ region with cell $(3,3)$ as the top-left cell is painted black.  
Cell $(5,10)$ is included in this region, so print `Yes`.
Input #2
5 5
10 1000
Output #2
No

The $100\times 100$ region with cell $(5,5)$ as the top-left cell is painted black.  
Cell $(10,1000)$ is not included in this region, so print `No`.
Input #3
1 2
1 1
Output #3
No

The $100\times 100$ region with cell $(1,2)$ as the top-left cell is painted black.  
Cell $(1,1)$ is not included in this region, so print `No`.
API Response (JSON)
{
  "problem": {
    "name": "Black Square",
    "description": {
      "content": "There is a grid with $10^{100}$ rows and $10^{100}$ columns.   In what follows, the cell at the $i$\\-th row from the top and $j$\\-th column from the left is denoted as cell $(i,j)$. In this grid, only",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc441_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There is a grid with $10^{100}$ rows and $10^{100}$ columns.  \nIn what follows, the cell at the $i$\\-th row from the top and $j$\\-th column from the left is denoted as cell $(i,j)$.\nIn this grid, only...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments