求中位数,注意求中位数前排序.... #include <bits/stdc++.h> using namespace std; #define LL long long const int MAXN=1e4+10; LL a[MAXN]; int main() { int n; cin>>n; LL sum=0; for(int i=0;i<n;i++) { cin>>a[i]; } sort(a,a+n); int mid=(n+1)/2-1; // cout…
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3448 Accepted Submission(s): 1144 Problem Description It has been ten years since TJU-ACM established. And in this year all the retired TJU-ACM…