Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 0
- a, _, b = monkeys["root"]
- while not find("root"):
- x = find(a)
- y = find(b)
- divisor = 100
- if abs(x - y) < 10000:
- i += 1
- else:
- if abs(x - y) > 0:
- i += abs(x - y) // divisor
- else:
- i -= abs(x - y) // divisor
- monkeys["humn"] = i
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement