会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jumaoxiangrijui
博客园
首页
新随笔
联系
订阅
管理
2024年8月5日
中位数
摘要: 题目 题解 1. 首先我们可以想到,既然需要输出(n+1)/2次,所以我们可以每次排序一下,并在其为奇数的时候输出它们中间的数。 #include<iostream> #include<algorithm> #include<queue> using namespace std; int N; in
阅读全文
posted @ 2024-08-05 21:30 橘猫向日葵
阅读(31)
评论(0)
推荐(0)
公告