1.题目
2.代码
#include <iostream>
using namespace std;
int main()
{
int q = 0;
cin >> q;
int a,b,c;
while(q--)
{
cin >> a >> b >> c;
int you = min(a,min(b,c)) * 2;
int ooo = max(b-(you/2)-1,0);
cout << (you + ooo) << endl;
}
return 0;
}