题解:P14056 【MX-X21-T1】[IAMOI R5] 七休制
Clouds_dream · · 题解
题目大意
题目传送门
题目分析
我们要让疲劳度为
显然,我们要优先选择休息休息,这样可以使疲劳度为
代码实现
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
#define fst ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
int a,b,c;
signed main()
{
fst
cin>>a>>b>>c;
cout<<b+min(a,c);
return 0;
}