计蒜客第一章:蒜头君的随机数
发布日期:2022-02-01 13:46:28 浏览次数:34 分类:技术文章

本文共 350 字,大约阅读时间需要 1 分钟。

计蒜客练习题:蒜头君的随机数

题目

在这里插入图片描述

样例

在这里插入图片描述

代码

#include
#include
using namespace std;set
a;int main(){
int n,x; cin>>n; while(n--) {
cin>>x; a.insert(x); } cout<
<
::iterator it=a.begin();it!=a.end();it++) if(it==a.begin()) cout<<*it; else cout<<" "<<*it; return 0;}

转载地址:https://blog.csdn.net/shidonghang/article/details/102293998 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:计蒜客第二章:蒜头君面试
下一篇:Uboot中读写寄存器

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月07日 15时44分08秒