1930:【05NOIP普及组】陶陶摘苹果

#include 
using namespace std;
int main(){
	int a1,a2,a3,a4,a5,a6,a7,a8,a9,a10;
	int gd;
	int sum=0;
	cin>>a1>>a2>>a3>>a4>>a5>>a6>>a7>>a8>>a9>>a10>>gd;
	if(30+gd>=a1){
		sum=sum+1;
	}
	if(30+gd>=a2){
		sum=sum+1;
	}
	if(30+gd>=a3){
		sum=sum+1;
	}
	if(30+gd>=a4){
		sum=sum+1;
	}
	if(30+gd>=a5){
		sum=sum+1;
    }
    if(30+gd>=a6){
		sum=sum+1;
    }
    if(30+gd>=a7){
		sum=sum+1;
    }
    if(30+gd>=a8){
		sum=sum+1;
    }
    if(30+gd>=a9){
		sum=sum+1;
    }
    if(30+gd>=a10){
		sum=sum+1;
    }
    cout<

你可能感兴趣的:(算法)