Files
PS/swea/21425.py
2024-11-12 17:47:08 +09:00

15 lines
209 B
Python

t=int(input())
for _ in range(t):
count=0
x,y,n=map(int,input().split())
while(x<=n and y<=n):
count+=1
if(x<y):
x+=y
else:
y+=x
print(count)