#include <iostream>
using namespace std;
int main()
{
int a, b, num, cnt1 = 0, cnt2 = 0;
cin >> a >> b;
for (int i = 0; i < 3; i++)
{
cin >> num;
if (num == 0)
{
cnt1++;
}
else
{
cnt2++;
}
}
if (a > b && cnt2 != 3)
{
cout << "The winner is a: " << a << " + " << cnt1;
}
else
{
cout << "The winner is b: " << b << " + " << cnt2;
}
return 0;
}
团体程序设计天梯赛-练习集 L1-055 谁是赢家 (10分)
最新推荐文章于 2023-04-12 15:05:07 发布