2 条题解

  • 0
    @ 2026-3-1 15:21:53
    #include<bits/stdc++.h>
    using namespace std;
    int main(){ //
    	int n,m;
    	long long sum=0;
    	cin>>n;
    	for(int i=0;i<n;i++){
    		cin>>m;
    		if(m>=451 and m<=600)
    			sum+=m; 
    	} 
    	cout<<sum;
        return 0;
    }
    
    
    • 0
      @ 2025-11-29 10:57:13
      #include<bits/stdc++.h>
      using namespace std;
      int main(){ //
      	int n;
      	long long sum=0;
      	cin>>n;
      	while(n--){
      		int m;
      		cin>>m;
      		if(m>=451 and m<=600){
      			sum+=m;
      		}		
      	}
      	cout<<sum;
      	return 0;
      }
      
      
      
      
      • 1

      信息

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