牛客国庆集训派对Day1 A Tobaku Mokushiroku Kaiji(简单)

版权声明:哈哈哈哈哈哈哈哈哈哈哈哦吼~~ https://blog.csdn.net/threeh20/article/details/82927641

https://www.nowcoder.com/acm/contest/201/A

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
    int a, b, c, d, e, f;
    while (~scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f))
    {
        int res = min(a, e) + min(b, f) + min(c, d);
        printf("%d\n", res);
    }
    return 0;
}

猜你喜欢

转载自blog.csdn.net/threeh20/article/details/82927641