t = int(input())for i in range(t): c, m, x = map(int, input().split()) ans = min(c,m, (c+m+x)//3) print(ans)
6 1 1 1 3 6 0 0 0 0 0 1 1 10 1 10 4 4 1
1 3 0 0 1 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!