2 条题解

  • 0
    @ 2025-8-21 16:28:46

    • 0
      @ 2023-12-31 12:11:12
      #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;
      }
      
      • 1

      信息

      ID
      1166
      时间
      1000ms
      内存
      256MiB
      难度
      5
      标签
      (无)
      递交数
      15
      已通过
      14
      上传者