电脑坏了,找了个网吧打,这键盘手感和输入法记忆真一言难尽。。。成功进面
T1-米小游做鸡
题意
做一只鸡要2个花和2个肉,现有a个花,b个肉,c个万能食材,求最多能做几只鸡。三个正整数a b c 均<=1e9
代码
#include <bits/stdc++.h>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#define ll long long
#define db double
using namespace std;
int main()
{
ll a,b,c;
cin >> a >> b >> c;
auto check = [&](ll val)
{
ll need = max(0LL, 2*val-a) + max(0LL, 2*val