fork download
  1. t = int(input())
  2. for i in range(t):
  3. c, m, x = map(int, input().split())
  4. ans = min(c,m, (c+m+x)//3)
  5. print(ans)
Success #stdin #stdout 0.02s 9256KB
stdin
6
1 1 1
3 6 0
0 0 0
0 1 1
10 1 10
4 4 1
stdout
1
3
0
0
1
3