add: swea/21425.py
This commit is contained in:
14
swea/21425.py
Normal file
14
swea/21425.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user