题解 | #序列中整数去重#

序列中整数去重

http://www.nowcoder.com/practice/6564a2f6e70f4153ad1ffd58b2b28490

BC125 序列中整数去重

思路:

step1:添加法去重;打印;

代码如下:

n = input()
n = list(map(int,input().split()))
c = []
for i in n:
    if i not in c:
        c.append(i)
for i in c:
    print(i,end=' ')
全部评论
解题思路不错
点赞 回复 分享
发布于 2022-10-31 14:48 上海

相关推荐

牛客48826091...:哥们胸肌挺好看
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务