791A - Bear and Big Brother

Run Settings
LanguagePython
Language Version
Run Command
def weights(limak, bob): for i in range(0, 10): if limak <= bob: limak *= 3 bob *= 2 else: break return i if __name__ == '__main__': limak, bob = list(map(int, input().split())) print(weights(limak, bob))
Editor Settings
Theme
Key bindings
Full width
Lines