Full House

AtCoder
IDabc263_a
Time2000ms
Memory256MB
Difficulty
We have five cards with integers $A$, $B$, $C$, $D$, and $E$ written on them, one on each card. This set of five cards is called a Full house if and only if the following condition is satisfied: * the set has three cards with a same number written on them, and two cards with another same number written on them. Determine whether the set is a Full house. ## Constraints * $1 \leq A,B,C,D,E\leq 13$ * Not all of $A$, $B$, $C$, $D$, and $E$ are the same. * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ $D$ $E$ [samples]
Samples
Input #1
1 2 1 2 1
Output #1
Yes

The set has three cards with $1$ written on them and two cards with $2$ written on them, so it is a Full house.
Input #2
12 12 11 1 2
Output #2
No

The condition is not satisfied.
API Response (JSON)
{
  "problem": {
    "name": "Full House",
    "description": {
      "content": "We have five cards with integers $A$, $B$, $C$, $D$, and $E$ written on them, one on each card. This set of five cards is called a Full house if and only if the following condition is satisfied: *   ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc263_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "We have five cards with integers $A$, $B$, $C$, $D$, and $E$ written on them, one on each card.\nThis set of five cards is called a Full house if and only if the following condition is satisfied:\n\n*   ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments