#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a,b,x,y,z;
cin>>a>>b;
cin>>x>>y>>z;
if(a>b&&x==1&&y==1&&z==1) printf("The winner is b: %d + 3",b);
else if(a<b&&x==0&&y==0&&z==0) printf("The winner is a: %d + 3",a);
else if(a>b) printf("The winner is a: %d + %d",a,3-x-y-z);
else printf("The winner is b: %d + %d",b,x+y+z);
return 0;
}
L1-055 谁是赢家 (10 分)
最新推荐文章于 2024-01-08 17:38:09 发布