BackmediumUncategorized uncategorized medium

Count Distinct Vial Pairs Solution

Problem Statement

Given three types of vials with quantities `moonpetal`, `dragonBreath`, and `starlightDew`, find the total number of distinct pairs that can be formed, considering each pair must contain at least one vial of an unidentified substance.

Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free