python-algorithm
codeforces 791A - Bear and Big Brother
무적김두칠
2022. 7. 12. 09:25
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 |
반응형