Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- e = int(input())
- f = int(input())
- two1 = 0
- two2 = 0
- if min(a, b, c) == a:
- two1 = min(b, c)
- elif min(a, b, c) == b:
- two1 = min(a, c)
- else:
- two1 = min(a, b)
- if min(d, e, f) == d:
- two2 = min(e, f)
- elif min(d, e, f) == e:
- two2 = min(d, f)
- else:
- two2 = min(d, e)
- res = 0
- ans = min(a, b, c) // min(d, e, f)
- ans *= two1 // two2
- ans *= max(a, b, c) // max(d, e, f)
- res = max(res, ans)
- ans = two1 // min(d, e, f)
- ans *= min(a, b, c) // two2
- ans *= max(a, b, c) // max(d, e, f)
- res = max(res, ans)
- ans = min(a, b, c) // min(d, e, f)
- ans *= max(a, b, c) // two2
- ans *= two1 // max(d, e, f)
- res = max(res, ans)
- ans = two1 // min(d, e, f)
- ans *= max(a, b, c) // two2
- ans *= min(a, b, c) // max(d, e, f)
- res = max(res, ans)
- ans = max(a, b, c) // min(d, e, f)
- ans *= two1 // two2
- ans *= min(a, b, c) // max(d, e, f)
- res = max(res, ans)
- ans = max(a, b, c) // min(d, e, f)
- ans *= min(a, b, c) // two2
- ans *= two1 // max(d, e, f)
- res = max(res, ans)
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement