We Love Golf

AtCoder
IDabc165_a
Time2000ms
Memory256MB
Difficulty
Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of $K$, while he can only make a carry distance of between $A$ and $B$ (inclusive). If he can achieve the objective, print `OK`; if he cannot, print `NG`. ## Constraints * All values in input are integers. * $1 \leq A \leq B \leq 1000$ * $1 \leq K \leq 1000$ ## Input Input is given from Standard Input in the following format: $K$ $A$ $B$ [samples]
Samples
Input #1
7
500 600
Output #1
OK

Among the multiples of $7$, for example, $567$ lies between $500$ and $600$.
Input #2
4
5 7
Output #2
NG

No multiple of $4$ lies between $5$ and $7$.
Input #3
1
11 11
Output #3
OK
API Response (JSON)
{
  "problem": {
    "name": "We Love Golf",
    "description": {
      "content": "Takahashi the Jumbo will practice golf. His objective is to get a carry distance that is a multiple of $K$, while he can only make a carry distance of between $A$ and $B$ (inclusive). If he can achiev",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc165_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi the Jumbo will practice golf.\nHis objective is to get a carry distance that is a multiple of $K$, while he can only make a carry distance of between $A$ and $B$ (inclusive).\nIf he can achiev...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments