+ 5

Buy 100 chickens for 100 dollars

Given that: 1. You have to spend EXACTLY 100 dollars; 2. You have to buy EXACTLY 100 chickens; 3. Rooster: 5 dollars a piece; 4. Hen: 3 dollars a piece; 5. Chick: 1 dollar for 3 pieces; Question: How many combinations can satisfy these requirements? All languages are welcomed! I know the answer, how about you?

21st Jul 2019, 6:00 AM
William
William - avatar
7 ответов
21st Jul 2019, 6:25 PM
daniel
daniel - avatar
+ 6
Hello there! This is a QnA section, not an assignment section. Even if you actually know the answer, this should belong in your feed. Please consider reading this and taking this question down ;) https://www.sololearn.com/discuss/1316935/?ref=app
21st Jul 2019, 6:39 AM
Airree
Airree - avatar
+ 3
William try here: https://www.sololearn.com/Discuss/1270852/?ref=app Probably Airree forgot to mention it...
21st Jul 2019, 6:12 PM
daniel
daniel - avatar
+ 3
Yeah. Also, you could easily post it in your feed, rules are not that strict, and there isn't that many mean people like me, so you can post your challenges/assignments freely ;) Here's a very wet - S O R R Y -
21st Jul 2019, 6:15 PM
Airree
Airree - avatar
+ 1
daniel Wow, nice code to see a clear difference between Python and other languages. Glad to see that the code consists of only one phrase and starts with the word print. Thanks, man!
21st Jul 2019, 10:29 PM
William
William - avatar
+ 1
Python is the easiest to do this in.
22nd Jul 2019, 1:27 AM
Sonic
Sonic - avatar
0
Airree Yeah, every time I suggest something interesting, it's turned down here. I can't add anything in assignment section, so the only place is to post it here. I want to give chance for everyone from all over the world to turn on their power of imagination and dig in into small but challenging piece of brain work. As a result I receive very dry "sorry" from administrators. Restriction never gives chance for creativity. Well, it's your call nevertheless.
21st Jul 2019, 7:51 AM
William
William - avatar