codechef:April Challenge 2014: Cards, bags and coins
http://www.codechef.com/APRIL14/problems/ANUCBCStatementYetanothergamefromchef.ChefgivesyouNcardsandMbags.EachoftheNcardshasanintegerwrittenonit.Nowchefasksyoutocloseyoureyesandchooseasubsetofthem.Het