Problem 2618 --Basic Modifications - Unique

2618: Basic Modifications - Unique

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $264$ 正确数量 $392$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL
Unique For a sequence of integers A={a0,a1,...,an−1} which is sorted by ascending order, eliminate all equivalent elements.

A sequence is given in the following format.

a0 a1,...,an−1

Print the sequence after eliminating equivalent elements in a line. Separate adjacency elements by a space character.
4
1 2 2 4
1 2 4

1≤n≤100,000 

−1000,000,000≤ai≤1,000,000,000 

a0≤a1≤...≤an−1

推荐代码 查看2618 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 非常烧饼 817752 2022-03-09 07:56:48
内存最少[$1192 $KB] 张世奇 1068278 2024-02-29 12:27:10
第一AC 计爱玲 281757 2018-10-07 15:37:47
第一挑战 计爱玲 281757 2018-10-07 15:37:47

赛题来源/所属竞赛 会津大学《C++ Programming II》 C++程序设计(高级)

竞赛编号 竞赛名称 竞赛时间 访问比赛
1797 2023-2024-2学期<计算机专业竞赛实训> 第1周练习:STL基础和高精度计算【22计算机】 2024-02-26 00:00:00 请登录
1737 2022-2023-2学期<计算机专业竞赛实训> 第3周练习:STL基础:string/高精度计算【21计算机12345】 2023-03-07 07:00:00 请登录
1681 2021-2022-2学期<算法分析与设计> 第2周练习:STL算法:string/高精度计算 2022-02-28 08:00:00 请登录