<p><img alt="You have n cards. Each card has two non-negative integers, ai and bi. There is a counter c indicating how many cards can be p" src="https://media.cheggcdn.com/media%2Fdde%2Fdde1826e-795b-49dc-a668-1323eaedcc7d%2Fphppk3dsU.png" style="height:254px;width:703px;" aria-describedby="d3f"/></p>You have