provincesandgold - bradendubois/competitive-programming GitHub Wiki

Provinces and Gold

ID: provincesandgold

Difficulty: 1.4

CPU Time: 1 second

Memory: 1024 MB

Solution

To simply the "or" between the victory and treasure cards, since one always outputs a treasure card, or both, one can simply make the message for each respective victory card "<\Name> or ", and output the best victory card (if one can be afforded), and the best treasure card affordable.

⚠️ **GitHub.com Fallback** ⚠️