E. Distinct Numbers

    传统题 1000ms 128MiB

Distinct Numbers

当前没有测试数据。

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

You are given a list of n integers, and your task is to calculate the number of distinct values in the list.

Input Format

The first input line has an integer n: the number of values.

The second line has n integers x1,x2,,xn.

Output Format

Print one integers: the number of distinct values.
5
2 3 2 2 3
2

Hint

<li> 1n2105 </li> <li> 1xi109 </li>

Source

CSES

STL容器-set

未参加
状态
已结束
规则
ACM/ICPC
题目
7
开始于
2025-3-12 11:00
结束于
2025-5-25 15:00
持续时间
1780 小时
主持人
参赛人数
26