Tiny Arithmetic Sequence

AtCoder
IDabc201_a
Time2000ms
Memory256MB
Difficulty
You are given a sequence of three numbers: $A=(A_1,A_2,A_3)$. Is it possible to rearrange the elements of $A$ into an arithmetic sequence? In other words, is it possible to rearrange the elements of $A$ so that $A_3-A_2=A_2-A_1$? ## Input Input is given from Standard Input in the following format: $A_1$ $A_2$ $A_3$ ## Constrains * $1 \leq A_i \leq 100$ * All values in input are integers. [samples]
Samples
Input #1
5 1 3
Output #1
Yes

We can rearrange them into an arithmetic sequence by, for example, making it $(1,3,5)$.
Input #2
1 4 3
Output #2
No

There is no way to rearrange them into an arithmetic sequence.
Input #3
5 5 5
Output #3
Yes

All elements of $A$ may be equal, or $A$ may be an arithmetic sequence already.
API Response (JSON)
{
  "problem": {
    "name": "Tiny Arithmetic Sequence",
    "description": {
      "content": "You are given a sequence of three numbers: $A=(A_1,A_2,A_3)$. Is it possible to rearrange the elements of $A$ into an arithmetic sequence? In other words, is it possible to rearrange the elements of $",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc201_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a sequence of three numbers: $A=(A_1,A_2,A_3)$.\nIs it possible to rearrange the elements of $A$ into an arithmetic sequence?\nIn other words, is it possible to rearrange the elements of $...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments