#include <iostream>
using namespace std;
int main()
{
int a,b,flag,n[3];
cin>>a>>b;
scanf("%d %d %d",&n[0],&n[1],&n[2]);
if(a>b)
flag=1;
else
flag=0;
int count0=0,count1=0;
for(int i=0;i<3;i++)
{
if(n[i]==0)
{
count0++;
}
else
count1++;
}
if(count0==3)
{
printf("The winner is a: %d + %d",a,count0);
}
else if(count1==3)
{
printf("The winner is b: %d + %d",b,count1);
}
else if(a>b&&count0!=0)
{
printf("The winner is a: %d + %d",a,count0);
}
else
{
printf("The winner is b: %d + %d",b,count1);
}
}
3.18打卡
最新推荐文章于 2024-08-18 21:24:27 发布