На работе у меня внутренняя газета есть, так вот в ней запостили головоломку:
"I'm walking to the CoinStar machine with 32 quarters (0.25$) , 80 dimes (0.1$), 160 nickels (0.05$) and 800 pennis (0.01$). Quarters weight 5.7 grams, nickels weight 5 grams, pennies weigh 2.5 grams, and dimes weigh 2.3 grams. On my way, I stop to buy a burito for $7.89 . How many different ways can I pay for the burrito if I want to give the cashier coins only, exact change, and make sure the total weight of the coins is no more that 300 grams? "
Я уже свой ответ отправил, (там типа если правильно ответишь, то первые 2 получат $50 starbucks gift card). Мы тут с китайцами и тайванцами решили совмесными трудами.
Решил запостить сюда для подъема утренней производительности и расторможения.
![](/theme/images/logo/logo-white.png)