Macaron Order Price

Each macaron has the same unit price p and a flavor; there are at most 5 distinct flavors. An order is made of sets of up to 5 macarons with no repeated flavor within a set; the baker fills each set t...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: