본문 바로가기
python-algorithm

codeforces 791A - Bear and Big Brother

by 무적김두칠 2022. 7. 12.

1
2
3
4
5
6
7
8
9
def sol(a,b):
    cnt=0
    while a<=b:
        cnt+=1
        a*=3
        b*=2
    print(cnt)
a,b=map(int,input().split())
sol(a,b)
cs
반응형

댓글