找回密码
 中文实名注册
搜索
查看: 178|回复: 0

足球赛

[复制链接]

5

主题

16

回帖

553

积分

高级会员

积分
553
发表于 2025-7-24 15:05:53 | 显示全部楼层 |阅读模式
#include<iostream>
using namespace std;
int main(){
    int a,b,c,e;
    cin >>a>>b>>c>>e;

    if (a+e>b+c){
        cout<<"xiaohei"<<endl;
    }else if(a+e==b+c){
        if(b>e){
            cout<<"xiaohong"<<endl;
        }else if(e>b){
            cout<<"xiaohei"<<endl;
        }else if(e==b){
            cout<<"Draw"<<endl;
        }        
    }else if(a+e<b+c){
        cout<<"xiaohong"<<endl;
    }
    return 0;
}

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 中文实名注册

本版积分规则

快速回复 返回顶部 返回列表