仅参考

 •  20小时前


include

using namespace std;

int main(){

int a,b,c,d,e,f,g,h,i,j,k,l,m,n;
cin >>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>k>>l>>m>>n;
if(a+b>8&&a+b>=d+c&&a+b>=f+e&&a+b>=h+g&&a+b>=j+i&&a+b>=l+k&&a+b>=m+n){
	cout<<1;
}else if(c+d>8&&c+d>a+b&&c+d>=f+e&&c+d>=h+g&&c+d>=j+i&&c+d>=l+k&&c+d>=m+n){
	cout<<2;
}else if(e+f>8&&e+f>a+b&&e+f>c+d&&e+f>=h+g&&e+f>=j+i&&e+f>=l+k&&e+f>=m+n){
	cout<<3;
}else if(h+g>8&&h+g>a+b&&h+g>c+d&&h+g>e+f&&h+g>=j+i&&h+g>=l+k&&h+g>=m+n){
	cout<<4;
}else if(j+i>8&&j+i>a+b&&j+i>c+d&&j+i>e+f&&j+i>h+g&&j+i>=l+k&&j+i>=m+n){
	cout<<5;
}else if(l+k>8&&l+k>a+b&&l+k>c+d&&l+k>e+f&&l+k>h+g&&l+k>j+i&&l+k>=m+n){
	cout<<6;
}else if(m+n>8&&m+n>a+b&&m+n>c+d&&m+n>e+f&&m+n>h+g&&m+n>j+i&&m+n>l+k){
	cout<<7;
}else{
	cout<<0;
}

return 0;

}


评论:

请先登录,才能进行评论