Same

AtCoder
IDabc324_a
Time2000ms
Memory256MB
Difficulty
You are given $N$ integers $A _ 1,A _ 2,\ldots,A _ N$. If their values are all equal, print `Yes`; otherwise, print `No`. ## Constraints * $2\leq N\leq100$ * $1\leq A _ i\leq100\ (1\leq i\leq N)$ * All input values are integers. ## Input The input is given from Standard Input in the following format: $N$ $A _ 1$ $A _ 2$ $\ldots$ $A _ N$ [samples]
Samples
Input #1
3
3 2 4
Output #1
No

We have $A _ 1\neq A _ 2$, so you should print `No`.
Input #2
4
3 3 3 3
Output #2
Yes

We have $A _ 1=A _ 2=A _ 3=A _ 4$, so you should print `Yes`.
Input #3
10
73 8 55 26 97 48 37 47 35 55
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "Same",
    "description": {
      "content": "You are given $N$ integers $A _ 1,A _ 2,\\ldots,A _ N$. If their values are all equal, print `Yes`; otherwise, print `No`.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc324_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given $N$ integers $A _ 1,A _ 2,\\ldots,A _ N$.\nIf their values are all equal, print `Yes`; otherwise, print `No`.\n\n## Constraints\n\n*   $2\\leq N\\leq100$\n*   $1\\leq A _ i\\leq100\\ (1\\leq i\\leq N)...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments