信息
- ID
- 1224
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 9
- 标签
- (无)
- 递交数
- 12
- 已通过
- 6
- 上传者
#include<bits/stdc++.h> using namespace std; int main(){//C++10级 最终得分 int n,high=0,low=100,scroe; long long sum=0; cin>>n; for(int i=0;i<n;i++){ cin>>scroe; sum+=scroe; high=max(high,scroe); low=min(low,scroe); } cout<<(sum-high-low)/(n-2); return 0; }