摘要: 数组元素范围小,利用桶排序,遍历桶数组判断是否存在中间数。 include <bits/stdc++.h> using namespace std; int main () { int n,i,sum=0; cin>>n; int a,b[1010]={0}; for(i=0;i<n;i++) { 阅读全文