Beginning

AtCoder
IDkeyence2019_a
Time2000ms
Memory256MB
Difficulty
You are given four digits $N_1, N_2, N_3$ and $N_4$. Determine if these can be arranged into the sequence of digits "$1974$". ## Constraints * $0 \leq N_1, N_2, N_3, N_4 \leq 9$ * $N_1, N_2, N_3$ and $N_4$ are integers. ## Input Input is given from Standard Input in the following format: $N_1$ $N_2$ $N_3$ $N_4$ [samples]
Samples
Input #1
1 7 9 4
Output #1
YES

We can get $1974$ by swapping $N_2$ and $N_3$.
Input #2
1 9 7 4
Output #2
YES

We already have $1974$ before doing anything.
Input #3
1 2 9 1
Output #3
NO
Input #4
4 9 0 8
Output #4
NO
API Response (JSON)
{
  "problem": {
    "name": "Beginning",
    "description": {
      "content": "You are given four digits $N_1, N_2, N_3$ and $N_4$. Determine if these can be arranged into the sequence of digits \"$1974$\".",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "keyence2019_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given four digits $N_1, N_2, N_3$ and $N_4$. Determine if these can be arranged into the sequence of digits \"$1974$\".\n\n## Constraints\n\n*   $0 \\leq N_1, N_2, N_3, N_4 \\leq 9$\n*   $N_1, N_2, N_3...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments