Premium problem37. Item Available in Either Warehouse

Easy Locked

An item is in stock at warehouse A with probability p_a and, independently, at warehouse B with probability p_b. Return the probability it can be supplied from at least one of them.

Input

p_a = 0.6
p_b = 0.5

Output

0.8

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)