摘要: 题目 题解 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)