#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+5;
int arr[maxn];
int main(){
int n;
int sum=0,tmp=0;
cin>>n;
for(int i=0;i<n;i++){
cin>>arr[i];
sum += arr[i];
}
sort(arr,arr+n);
for(int i=0;i<n/2;i++){
tmp+=arr[i];
}
cout<<"Outgoing #: "<<n - n/2<<endl;
cout<<"Introverted #: "<<n/2<<endl;
cout<<"Diff = "<<sum-2*tmp<<endl;
return 0;
}
L2-017 人以群分 (25 分)
最新推荐文章于 2020-02-28 00:25:24 发布