Device time · Morning
Auto keeps reflective, darker tracks for 18:00–06:00. Choose your own mood anytime.
그냥 문제
생각하면 풀리는 문제
for i in range(int(input())): a, b = map(int, input().split()) if b < a//3+(1 if a % 3 else 0) or a < b//3+(1 if b % 3 else 0): print(-1) else: print((a+b)//4 + (1 if ((a+b)%4) else 0))
Ready when you are
A little company for your thoughts.