
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 |
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 1702A - Round Down the Price (0) | 2022.07.19 |
---|---|
leetcode 1702B - Polycarp Writes a String from Memory (0) | 2022.07.19 |
leetcode 2022. Convert 1D Array Into 2D Array (0) | 2022.07.11 |
leetcode 2215. Find the Difference of Two Arrays (0) | 2022.07.08 |
leetcode 2303. Calculate Amount Paid in Taxes (0) | 2022.07.07 |
댓글