鸡兔同笼。
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
int t,a,b,c;
cin>>t;
while(t--){
cin>>a>>b>>c;
int ans=0;
ans=-c/4+a/2+b;
cout<<ans<<endl;
}
return 0;
}
/**************************************************************
Problem: 1224
User: zoro
Language: C++
Result: Accepted
Time:0 ms
Memory:1696 kb
****************************************************************/