题解 | 变幻莫测
变幻莫测
https://www.nowcoder.com/practice/5e702b6c7c114e64b5db4650d0ce0051
x, y = map(int, input().split())
c = 0
while x != y:
if c < 100:
if x != 0:
x, y = x + y,x - y
else:
x, y = y, x
c += 1
else:
break
if x == y:
print(c)
else:
print(-1)
