Poor

AtCoder
IDabc155_a
Time2000ms
Memory256MB
Difficulty
A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers $A$, $B$, and $C$. If this triple is poor, print `Yes`; otherwise, print `No`. ## Constraints * $A$, $B$, and $C$ are all integers between $1$ and $9$ (inclusive). ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ [samples]
Samples
Input #1
5 7 5
Output #1
Yes

$A$ and $C$ are equal, but $B$ is different from those two numbers, so this triple is poor.
Input #2
4 4 4
Output #2
No

$A$, $B$, and $C$ are all equal, so this triple is not poor.
Input #3
4 9 6
Output #3
No
Input #4
3 3 4
Output #4
Yes
API Response (JSON)
{
  "problem": {
    "name": "Poor",
    "description": {
      "content": "A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers $A$, $B$, and $C$. If this tripl",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc155_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers.\nYou will be given three integers $A$, $B$, and $C$. If this tripl...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments