728x90
a, b = map(int, input().split())
c, d = map(int, input().split())
f = []
f.append(a / c + b / d)
f.append(c / d + a / b)
f.append(d / b + c / a)
f.append(b / a + d / c)
f_max = max(f)
print(f.index(f_max))
'백준 > Bronze 3' 카테고리의 다른 글
백준 3028 파이썬 (0) | 2020.12.30 |
---|---|
백준 2985 파이썬 (0) | 2020.12.30 |
백준 2511 파이썬 (0) | 2020.12.30 |
백준 2445 파이썬 (0) | 2020.12.28 |
백준 2444 파이썬 (0) | 2020.12.28 |