728x90
반응형
단순 구현 문제이다.
a = int(input())
b = int(input())
cnt = 2
while a-b >= 0:
a, b = b, a-b
cnt += 1
print(cnt)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 7015번 Millennium(python) (0) | 2021.02.18 |
---|---|
백준 알고리즘 6975번 Deficient, Perfect, and Abundant(python) (0) | 2021.02.18 |
백준 알고리즘 6794번 What is n, Daddy?(python) (0) | 2021.02.18 |
백준 알고리즘 6974번 Long Division(python) (0) | 2021.02.18 |
백준 알고리즘 1592번 영식이와 친구들(python) (0) | 2021.02.17 |