注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
原题贴这了
// We want to write a function can_purchase() such that, given a particular card and collection of gems for a player, we return true if the player can afford the card, and falseng a card that lists its cost as 3 (G)reen, 2 (R)ed, and 1 (B)lue, then the player should be able to purchase it for 1 G, 1 R, and 1 B.
|