Sample Input
29 7 41 14 12 42
Sample Output
33
Source::Click here
题解
针对Kaiji计算出他出剪刀,石头,布三种情况下最多能赢对方的最多数量。
AC Code
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e5+10;
int main()
{
int a, b, c, d, e, f, ans;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
ans = min(a,e) + min(b,f) + min(c,d);
printf("%d\n",ans);
return 0;
}