import sys sys.stdin = open('input.txt') T = int(input()) for tc in range(1, T+1): A, B, C = map(int, input().split()) if B>=C: print(-1) else: print(int(A/(C-B)+1))