Jelly Flavours
면접 대비시간 제한1초메모리 제한1024 MB
각 맛마다 두 상점의 가격이 주어지고 A 상점에는 x달러, B 상점에는 y달러를 쓸 수 있을 때, 살 수 있는 서로 다른 맛의 최대 개수를 구한다.
문제
Amy is a big fan of jelly, and wishes to buy some for dessert. There are a total of flavours of jelly, numbered to . Store A sells jelly of flavour for dollars a piece, whereas Store B sells it for dollars a piece. Amy can spend up to dollars in Store A and up to dollars in Store B.
Help Amy find the maximum number of unique flavours of jelly she can purchase.
제한
- (for all )
예제
이 문제는 공개된 예제가 없습니다.