Distinct or Not

AtCoder
IDabc154_c
Time2000ms
Memory256MB
Difficulty
Given is a sequence of integers $A_1, A_2, ..., A_N$. If its elements are pairwise distinct, print `YES`; otherwise, print `NO`. ## Constraints * $2 ≤ N ≤ 200000$ * $1 ≤ A_i ≤ 10^9$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $N$ $A_1$ $...$ $A_N$ [samples]
Samples
Input #1
5
2 6 1 4 5
Output #1
YES

The elements are pairwise distinct.
Input #2
6
4 1 3 1 6 2
Output #2
NO

The second and fourth elements are identical.
Input #3
2
10000000 10000000
Output #3
NO
API Response (JSON)
{
  "problem": {
    "name": "Distinct or Not",
    "description": {
      "content": "Given is a sequence of integers $A_1, A_2, ..., A_N$. If its elements are pairwise distinct, 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": "abc154_c"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given is a sequence of integers $A_1, A_2, ..., A_N$. If its elements are pairwise distinct, print `YES`; otherwise, print `NO`.\n\n## Constraints\n\n*   $2 ≤ N ≤ 200000$\n*   $1 ≤ A_i ≤ 10^9$\n*   All valu...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments