分析:
赢了x场,积分为3*x;打平了y,场积分为y;因此答案就是3*x+y
注意数学上的乘号在程序中只能用*代替
#include<iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); //取消同步流,可不写
int x,y,z;
cin >> x >> y >> z;
cout << 3*x+y+0*z << endl;
return 0;
}