2 条题解

  • 1
    @ 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;
    }
    
    • 0
      @ 2025-8-21 16:28:46

      • 1

      信息

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