A. 非重复数
非重复数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
翻译自 CSES-1621 题。
题目描述
给定一个包含 个整数的列表,你的任务是计算列表中不同值的数量。
输入格式
第一行输入一个整数 ,表示列表中数字的个数。
第二行输入 个整数 ,表示列表中的各个数字。
输出格式
输出一个整数,表示列表中不同值的数量。
样例
5
2 3 2 2 3
2
说明/提示
。
。
CSES练习二 排序贪心STL
- Status
- Done
- Problem
- 35
- Open Since
- 2025-5-1 0:00
- Deadline
- 2025-5-31 23:59
- Extension
- 24 hour(s)