摘要:
数组元素范围小,利用桶排序,遍历桶数组判断是否存在中间数。 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++) { 阅读全文
posted @ 2024-09-01 11:00
lkhshnu
阅读(13)
评论(0)
推荐(0)
浙公网安备 33010602011771号